Swiper is Re-Rendering after loop is completed
Author: vishnucCreated Jul 3, 2021Updated Mar 12, 2025
Which OS ?
Android
Version
Which versions are you using:
- react-native-swiper v 1.6.0
- react-native v0.63.4
Expected behaviour
When loop is complete , first slide should be loaded again smoothly without re-rendering and flickering
Actual behaviour
When loop is complete , first slide image is re-rendered / refreshed and there is a blink.
How to reproduce it>
<Swiper
removeClippedSubviews={false}
autoplay
key={jsonMovies.length}
loadMinimal={true}
loop={true}
loadMinimalSize={1}
loadMinimalLoader={<ActivityIndicator />}
>
{Pages()}
</Swiper>Steps to reproduce
1.Add loop={true}
I tried to add removeClippedSubviews={false} like suggested in other posts , still the sliders are rendered again after loop ended.
Source: leecade/react-native-swiper