File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,11 @@ export default class AppIntro extends Component {
240
240
const AnimatedStyle1 = this . getTransform ( index , 10 , level ) ;
241
241
const AnimatedStyle2 = this . getTransform ( index , 0 , level ) ;
242
242
const AnimatedStyle3 = this . getTransform ( index , 15 , level ) ;
243
+ const imgSource = ( typeof img === 'string' ) ? { uri : img } : img ;
243
244
const pageView = (
244
245
< View style = { [ this . styles . slide , { backgroundColor } ] } showsPagination = { false } key = { index } >
245
246
< Animated . View style = { [ this . styles . header , ...AnimatedStyle1 . transform ] } >
246
- < Image style = { imgStyle } source = { { uri : img } } />
247
+ < Image style = { imgStyle } source = { imgSource } />
247
248
</ Animated . View >
248
249
< View style = { this . styles . info } >
249
250
< Animated . View style = { AnimatedStyle2 . transform } >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Example extends Component {
58
58
}, {
59
59
title: ' Page 2' ,
60
60
description: ' Description 2' ,
61
- img: ' https://goo.gl/GPO6JB ' ,
61
+ img: require ( ' ../assets/some_image.png ' ) ,
62
62
imgStyle: {
63
63
height: 93 * 2.5 ,
64
64
width: 103 * 2.5 ,
You can’t perform that action at this time.
0 commit comments