react-native-looped-carousel
react-native-looped-carousel copied to clipboard
0.1.13 Didn't show image
<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)
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.
Yes, but i only have one😆
I had to go back to 0.1.12. In the new version if you have only one image it doesn't show.
when length = 1 render as Image where length>1 render as Carousel
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.
Was this ever resolved? I am getting the same issue.
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
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.
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: