the top pink text box will show the current index of the carousel
fast scroll to the end or beginning of the scroller
text box number doesn't get updated.
Expected behavior
Text box number should be updated when fast scroll to the end or beginning.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
react: v18.2.0
react-native: v0.72.3
react-native-reanimated: v3.4.1
react-native-reanimated-carousel: v3.5.1
react-native-gesture-handler: v2.8.0
Smartphone (please complete the following information):
Device: [e.g. iPhone14pro]
OS: [e.g. iOS16]
just use iOS simulator in Xcode 11
Additional context
I actually have found a fix for this, in ScrollViewGesture.tsx, line 214 & 225.
You forgot to put the onFinish call back in the withSpring function call, so this issue can be fixed by doing the following:
Describe the bug A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
To Reproduce Steps to reproduce the behavior:
Expected behavior Text box number should be updated when fast scroll to the end or beginning.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Smartphone (please complete the following information):
Additional context I actually have found a fix for this, in ScrollViewGesture.tsx, line 214 & 225. You forgot to put the onFinish call back in the withSpring function call, so this issue can be fixed by doing the following: