React-native-swiper: Swiper paused for 2-3 second.

Created on 12 Aug 2020  路  4Comments  路  Source: leecade/react-native-swiper

Screenshot 2020-08-12 at 5 25 19 PM

I have placed Swiper on the Home Screen. When I come back to the Home screen from any other screen. This Swiper gets paused for 2-3 second as shown in the image.

<Swiper style={{height:150}} autoplayTimeout={5} autoplay={true} showsButtons={false} showsPagination={false} scrollEnabled={false} loop={true} > { data.map((img, i) => { return( <TouchableOpacity key={Img_${id + i}} style={{justifyContent: 'center', flex: 1}}> <ImageBackground resizeMode="contain" source={{ uri: img, }} style={{ width: '100%', height: 150 }}> </ImageBackground> </TouchableOpacity> ) }) } </Swiper>

Is there any way to refresh the swiper when comes back to Home screen?

All 4 comments

This is also happening to me aswell some times.

the same issue

This is also happening to me on iOS锛宎ndroid is working well.

just change removeClippedSubviews
<Swiper removeClippedSubviews={false} />

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tokict picture tokict  路  3Comments

nomoreboredom picture nomoreboredom  路  3Comments

AndriiBoiko picture AndriiBoiko  路  3Comments

kylehagler picture kylehagler  路  3Comments

chetanparakh picture chetanparakh  路  3Comments