Open psycura opened 4 years ago
i got same behavior, using scrollby() method change the index props but dont change the actual swiper view.
Which versions are you using:
react-native-swiper v1.6.0-nightly.5 react-native v0.61.5
issue coming for ios only to me
same issue. has not it been resolved yet? only android issue.
any update on this???
Which OS ?
Android
Version
Which versions are you using:
Expected behaviour
If
index
prop is changed, current swipe-page should be scrolled to the updated pageActual behaviour
On initial load Swiper is behave ok, display page that should be displayed by index. When index updated Swiper doesn't scroll to the new position, despite of fact, that he is receive new offset in the Swiper components
How to reproduce it>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
-
Steps to reproduce
Here is very basic example. I have array of channels. On screen load, i define index based on some parameters, that receive from outside. On Initial mount, Swiper works ok and display right page based on index. If i press button, to change index (emulation of index update), i want that Swiper will display new Page based on index. But this isn`t happen