You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When changing data, only the handlerOffsetX for image get reset to default. The index variable for getCurrentIndex does not reset even after multiple data changes.
To Reproduce
Steps to reproduce the behavior:
Snap to a non zero index. (e.g: 3)
Change data.
Console log getCurrentIndex when the data change by using useEffect.
Change data multiple time to see that getCurrentIndex still return the same value (e.g: 3) until there is new snap event.
Expected behavior
getCurrentIndex should return 0 when there is data changes.
Versions:
react: v17.0.2
react-native: v0.67.4
react-native-reanimated: v2.8.0
react-native-reanimated-carousel: v2.3.9
react-native-gesture-handler: v2.4.1
Smartphone:
Device: iPhone 11
OS: iOS 15.4.1
The text was updated successfully, but these errors were encountered:
Describe the bug When changing data, only the handlerOffsetX for image get reset to default. The index variable for getCurrentIndex does not reset even after multiple data changes.
To Reproduce Steps to reproduce the behavior:
Snap to a non zero index. (e.g: 3)
Change data.
Console log getCurrentIndex when the data change by using useEffect.
Change data multiple time to see that getCurrentIndex still return the same value (e.g: 3) until there is new snap event.
Expected behavior getCurrentIndex should return 0 when there is data changes.
Describe the bug
When changing data, only the handlerOffsetX for image get reset to default. The index variable for getCurrentIndex does not reset even after multiple data changes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
getCurrentIndex should return 0 when there is data changes.
Versions:
Smartphone:
The text was updated successfully, but these errors were encountered: