react-native-swiper
react-native-swiper copied to clipboard
Swiper is Re-Rendering after loop is completed
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.
@vishnuc did you get it fixed?
removeClippedSubviews={false} and React.memo work for me
it works for me
it works for me too