File tree 2 files changed +2
-5
lines changed
reader-sdk-react-native-quickstart/app
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ limitations under the License.
17
17
import React , { FC } from 'react' ;
18
18
import { Animated } from 'react-native' ;
19
19
20
- const iconImage = require ( './img/ic_jewel.png' ) ;
21
-
22
20
const SquareLogo : FC < Props > = props => {
23
21
return (
24
22
< Animated . Image
25
23
style = { [ { width : props . width , height : props . height } , props . style ] }
26
- source = { iconImage }
24
+ source = { require ( '../assets/images/ic_jewel.png' ) }
27
25
/>
28
26
) ;
29
27
} ;
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ import {
38
38
import CustomButton from '../components/CustomButton' ;
39
39
import SquareLogo from '../components/SquareLogo' ;
40
40
import { defaultStyles } from '../styles/common' ;
41
- const iconImage = require ( '../components/img/setting.png' ) ;
42
41
43
42
export default function CheckoutScreen ( { navigation} ) {
44
43
const [ locationName , setLocationName ] = useState ( '' ) ;
@@ -153,7 +152,7 @@ export default function CheckoutScreen({navigation}) {
153
152
return (
154
153
< View style = { defaultStyles . pageContainer } >
155
154
< TouchableOpacity onPress = { ( ) => onSettings ( ) } >
156
- < Image style = { defaultStyles . settingIconStyle } source = { iconImage } />
155
+ < Image style = { defaultStyles . settingIconStyle } source = { require ( '../assets/images/setting.png' ) } />
157
156
</ TouchableOpacity >
158
157
< View style = { defaultStyles . logoContainer } >
159
158
< SquareLogo style = { defaultStyles . logoStyle } />
You can’t perform that action at this time.
0 commit comments