Open initzx opened 4 years ago
Which OS ?
IOS 12
Version
Which versions are you using:
- react-native-swiper v^1.6.0-nightly.5
- react-native 0.61.4
Problem
When redux updates the swiper's elements asynchronously, the swiper's index is changed to the index of the element before the current element when it should have just stayed the same. This issue does not seem to affect my Android phone.
Hi, FYI this issue solve after i add loop={false} <Swiper loop={false} ref={this.mySwipeRef} index={this.state.swipeIndex} style={this.styles.wrapper} showsButtons={false} showsPagination={false} onIndexChanged={(index) => this.onSwipeIndexChanged(index)}
same here only android
This is happening for me too but is caused by any prop change. Setting loop
to false
does indeed fix it but now that feature is lost.
add loadMinimal={true} may helps you, see this
Which OS ?
IOS 12
Version
Which versions are you using:
Problem
When redux updates the swiper's elements asynchronously, the swiper's index is changed to the index of the element before the current element when it should have just stayed the same. This issue does not seem to affect my Android phone.