dohooo / react-native-reanimated-carousel

🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)
https://react-native-reanimated-carousel.vercel.app
MIT License
2.73k stars 317 forks source link

Jerk while scrolling the carousel. #414

Open kartik2653 opened 1 year ago

kartik2653 commented 1 year ago

Describe the bug While implementing react-native-reanimated-carousel the manual scrolling is not working smoothly. It is giving jerk on scrolling. Actually, I have a carousel nested inside a scroll view, Scroll View is vertical while carousel is horizontal. When I Try to scroll the carousel, it gives jerks.

To Reproduce Create a new project. Inside a scroll view render the carousel.

https://github.com/dohooo/react-native-reanimated-carousel/assets/79095428/178f412b-5d2b-4fe6-b56f-e169bac5e032

Expected behavior Smooth transition between the item's id required.

Versions (please complete the following information):

Smartphone (please complete the following information):

Code Code: return (

( onClick(item)}> )} />

);

developerchan1 commented 1 year ago

Hello @kartik2653. As mentioned at this issue https://github.com/dohooo/react-native-reanimated-carousel/issues/383, GestureHandlerRootView must be placed outside ScrollView and Carousel. Have you try it?

harrymuliawan03 commented 11 months ago

Hello @kartik2653. As mentioned at this issue #383, GestureHandlerRootView must be placed outside ScrollView and Carousel. Have you try it?

i had the same issue, when i try to swipe its have same problem, in the expo app its normally, but when its build to apk and installed in android device the problem show.

jerryphm commented 9 months ago

I had the same problem, but it's only on android

BlagojeV93 commented 7 months ago

Hello @kartik2653. As mentioned at this issue #383, GestureHandlerRootView must be placed outside ScrollView and Carousel. Have you try it?

Wraping the scrollview with GestureHandleRootView did the trick for me. I also had the issue on Android

micaelol12 commented 5 months ago

@BlagojeV93 answer worked for me. Thanks!