leecade / react-native-swiper

The best Swiper component for React Native.
MIT License
10.42k stars 2.34k forks source link

1.6.0-rc.3 - problem with loop props #1090

Open AndriiBoiko opened 5 years ago

AndriiBoiko commented 5 years ago

Which OS ?

Android / IOS

Version

Which versions are you using:

Untitled mov

First part of video

  <Swiper
    dot={<View style={styles.dot} />}
    activeDot={<View style={styles.activeDot} />}
    onIndexChanged={(index) => onIndexChanged(index, onboardingTexts.length - 1)}
    loop={false}
  >

Second part

  <Swiper
    dot={<View style={styles.dot} />}
    activeDot={<View style={styles.activeDot} />}
    onIndexChanged={(index) => onIndexChanged(index, onboardingTexts.length - 1)}
  >

When we add loop = {false} swiper works as expected But when use the default loop = {true} 1) the first page has been changed 2) when we got to the last slide - page has been changed too

abreudiego94 commented 4 years ago

i have same problem