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

0.1.13 Didn't show image #197

Open
huowenxuan opened this issue May 29, 2018 · 9 comments
Open

0.1.13 Didn't show image #197

huowenxuan opened this issue May 29, 2018 · 9 comments

Comments

@huowenxuan
Copy link

        <Carousel
          delay={2000}
          style={{width, height}}
          autoplay
          bulletStyle={styles.bulletStyle}
          chosenBulletStyle={[styles.bulletStyle, styles.chosenBulletStyle]}
        >
          {urls.map(item => <Image source={{uri: item}} style={{width, height}}/>)}
        </Carousel>

But the old version did(0.1.9)

@MobsMao
Copy link

MobsMao commented May 31, 2018

I have the same issue, but only occurs when only ONE item in Carousel. But images will show up when 2 or more items in Carousel.

@huowenxuan
Copy link
Author

Yes, but i only have one😆

@nbastoWM
Copy link

nbastoWM commented Jun 8, 2018

I had to go back to 0.1.12. In the new version if you have only one image it doesn't show.

@447491480
Copy link

447491480 commented Jun 11, 2018

when length = 1 render as Image where length>1 render as Carousel

@huowenxuan huowenxuan changed the title 0.1.13 Don't show image 0.1.13 Didn't show image Jun 22, 2018
@kaplona
Copy link

kaplona commented Jul 11, 2018

When there is only one children in carousel, no matter whether it's an image or not, it won't be displayed. I observe this behavior only on iOS (both simulator and device), Android is ok.

@rarenatoe
Copy link

Was this ever resolved? I am getting the same issue.

@MobsMao
Copy link

MobsMao commented Mar 22, 2019

Was this ever resolved? I am getting the same issue.

not sure. you can render an image when length = 1, when length > 1 render the Carousel

@rarenatoe
Copy link

Well, in my case that doesn't quite work, since I'm having it work along with Lightbox in order to render a gallery.
But it's alright. I rolled back to 0.1.12 like someone else did before.

@bob007abc
Copy link

Hi All,
I've fixed this bug by adding the below code in method "_placeCritical":
if (childrenLength === 1) { offset = 0; }

Please check the screenshot for detail:
BugFixing

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

No branches or pull requests

8 participants