Open
Description
Description
Auto play(loop) carousel on android jumps through indexes randomly and at most shows only 2-3 items, for example in an array of 18 items, it will only show indexes 0,1 and then jump to 17.
Expected behavior
Carousel should loop through all items as defined by items rendered
Actual behavior
Carousel jumps through items at random and at most shows only 2-3 items
Code snippet
<Carousel
loop={true}
autoplay={true}
autoplayInterval={5000}
showCounter={true}>
{article?.multi_images?.map((item: string, index: number) => {
return (
<Card.Image
key={index}
source={{uri: `${Config.ASSETS_URL}${item}`}}
cover={true}
aspectRatio={1.34}
style={{
borderTopLeftRadius: 15,
borderTopRightRadius: 15,
borderBottomLeftRadius: article?.has_tickers ? 0 : 15,
borderBottomRightRadius: article?.has_tickers ? 0 : 15,
}}
/>
);
})}
</Carousel>
Environment
- React Native version: 0.72.6
- React Native UI Lib version: 7.9.1
Affected platforms
- Android
- iOS
- Web
Metadata
Metadata
Assignees
Type
Projects
Status
To do