Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images not displayed . #8

Open
alainib opened this issue Nov 20, 2017 · 2 comments
Open

images not displayed . #8

alainib opened this issue Nov 20, 2017 · 2 comments

Comments

@alainib
Copy link

alainib commented Nov 20, 2017

hello, i get no images displayed with the example you provide ( tested on android only ), only the text "header image X" and "footer x" displayed.

screenshot_2017-11-20-10-03-57

Any idea ?

i try to log inside your code, "this.props.style" are undefined in "image.js" and "TouchableImage" because in "carousel.js" they are not passed <TouchableImage key={i} image={img} onPress={this.scrolling ? () => {} : () => onPressImage(i)} />


PS
i have warning easly fixed :
-" each viewpager child must be a , was TouchableImage"
-"each child in an array or iterator should have a unique key prop"

so in "carousel.js" file

    <View key={i}>
           <TouchableImage
             key={i}
             image={img}
             onPress={this.scrolling ? () => {} : () => onPressImage(i)}
             />
   </View>  
@Ash-faq
Copy link

Ash-faq commented Sep 14, 2018

Do anyone find the solution. Same thing is happening here for me

@kartikrawal123
Copy link

in image prop you must have to pass images as the example suggest. I also face this problem because i pass image in url but example show we must use uri so check the default syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants