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
After navigating to another screen and coming back to the screen with the carousel, the swipe gesture no longer works. The carousel stops responding. I can however, still use the pagination to navigate.
Expected behavior
You should still be able to use swipe gesture
Screenshots
NA
Versions (please complete the following information):
react: 18.3.1
react-native: 0.76.3
react-native-reanimated: 3.16.3
react-native-reanimated-carousel: 4.0.0-canary.22 (also on 4.0.0-alpha.12, haven't tried other versions)
react-native-gesture-handler: 2.21.2
Smartphone (please complete the following information):
Device: iPhone 16 Pro Max, Vivo x200 pro, Google Pixel 8, iOS simulators, Android emulators
OS: iOS & Android
Browser: na
Version: iOS, 18, Android (14, 15)
Additional context
I thought I had seen a similar issue created here, came back to see the state of it but couldn't find it anymore so apologies for duplicate.
The text was updated successfully, but these errors were encountered:
Hey there, @sadikyalcin! I'm here to assist you with any bugs, questions, or contributions you have. Let's get this issue sorted out together!
I found a similar unsolved discussion titled Enabling horizontal scroll, which was last updated on June 11, 2023. However, it does not provide a solution to the issue you're experiencing [1].
Regarding your issue, it seems like the swipe gesture stops responding after navigating away and back to the screen with the carousel. This could be related to how the gesture handlers are managed when the component is unmounted and remounted. Unfortunately, I couldn't find specific information on how the carousel component manages gesture handlers in such scenarios within the repository.
You might want to ensure that the gesture handlers are properly reset or re-initialized when the component is remounted. Additionally, checking if the react-native-gesture-handler is correctly set up and integrated with your navigation library might help, as it plays a crucial role in managing gesture-based interactions [2].
Describe the bug
After navigating to another screen and coming back to the screen with the carousel, the swipe gesture no longer works. The carousel stops responding. I can however, still use the pagination to navigate.
To Reproduce
Steps to reproduce the behavior:
Current code:
Expected behavior
You should still be able to use swipe gesture
Screenshots
NA
Versions (please complete the following information):
Smartphone (please complete the following information):
Additional context
I thought I had seen a similar issue created here, came back to see the state of it but couldn't find it anymore so apologies for duplicate.
The text was updated successfully, but these errors were encountered: