Open jayzyaj opened 4 years ago
I am experiencing the same issue but on android after upgrading to RN 0.62.2. It was working fine on RN 0.60.4.
Having same issue
Same issue here - if you're leverage useState hook it screws up the current swipe index on iOS. For our purposes, we're using useState hook to hide/show the previous navigation button if the user is on the first index (zero)
I am having the exact same issue. Any solution/workaround for this?
I'm also experiencing the same issue, regardless of using ScrollBy or ScrollTo the swiper.current.state.index value remains at 0 and fails unless hardcoded.
Same issue. no fix yet.
Which OS ?
iOS
Version
Which versions are you using:
Expected behaviour
Swiping programmatically when tapping the next button by calling
swiperEl.current!.scrollBy(1)
works perfectly on Android but not on iOS. It only works for the first time when I tap on next button but when I do it for the second time it persists on the second component and it didn't move to the third screen or component.Gif below:
Full code below:
Actual behaviour
It should behave the sameway as Android.
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
useEffect
hook at Slider component.swiperEl.current!.scrollBy(1)
when index is changed.