react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

Swiper is Re-Rendering after loop is completed

Open vishnuc opened this issue 3 years ago • 5 comments

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 avatar Jul 03 '21 08:07 vishnuc

@vishnuc did you get it fixed?

abdulsamadola avatar Jul 30 '21 20:07 abdulsamadola

removeClippedSubviews={false} and React.memo work for me

rajan-keypress avatar Aug 25 '21 07:08 rajan-keypress

it works for me

LoknathPandit avatar Oct 10 '21 10:10 LoknathPandit

it works for me too

Yieron avatar Oct 18 '21 10:10 Yieron