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
After switching to any image other than the first one in the carousel, when the browser size changes, the Pagination position is correct and the carousel displays the first image
The text was updated successfully, but these errors were encountered:
To address the issue of the carousel resetting to the first image when the browser size changes, you can use the useCommonVariables hook from the react-native-reanimated-carousel library. This hook helps adjust the handlerOffset when the size of the carousel changes, ensuring that the carousel maintains the correct position.
Here's a relevant code snippet using useAnimatedReaction to listen for size changes:
After switching to any image other than the first one in the carousel, when the browser size changes, the
Pagination
position is correct and the carousel displays the first imageThe text was updated successfully, but these errors were encountered: