Skip to content

Commit dd6d09e

Browse files
fixed .png import
1 parent ca42c50 commit dd6d09e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

reader-sdk-react-native-quickstart/app/components/SquareLogo.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ limitations under the License.
1717
import React, {FC} from 'react';
1818
import {Animated} from 'react-native';
1919

20-
const iconImage = require('./img/ic_jewel.png');
21-
2220
const SquareLogo: FC<Props> = props => {
2321
return (
2422
<Animated.Image
2523
style={[{width: props.width, height: props.height}, props.style]}
26-
source={iconImage}
24+
source={require('../assets/images/ic_jewel.png')}
2725
/>
2826
);
2927
};

reader-sdk-react-native-quickstart/app/screens/CheckoutScreen.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
import CustomButton from '../components/CustomButton';
3939
import SquareLogo from '../components/SquareLogo';
4040
import {defaultStyles} from '../styles/common';
41-
const iconImage = require('../components/img/setting.png');
4241

4342
export default function CheckoutScreen({navigation}) {
4443
const [locationName, setLocationName] = useState('');
@@ -153,7 +152,7 @@ export default function CheckoutScreen({navigation}) {
153152
return (
154153
<View style={defaultStyles.pageContainer}>
155154
<TouchableOpacity onPress={() => onSettings()}>
156-
<Image style={defaultStyles.settingIconStyle} source={iconImage} />
155+
<Image style={defaultStyles.settingIconStyle} source={require('../assets/images/setting.png')} />
157156
</TouchableOpacity>
158157
<View style={defaultStyles.logoContainer}>
159158
<SquareLogo style={defaultStyles.logoStyle} />

0 commit comments

Comments
 (0)