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.85k stars 329 forks source link

there is no minscrolldistanceperswipe in v3.5.1 #683

Closed SanjayPathak289 closed 1 month ago

SanjayPathak289 commented 1 month ago

there is no minscrolldistanceperswipe in v3.5.1

dosubot[bot] commented 1 month ago

Hey @SanjayPathak289, I'm here to help you with any bugs, questions, or contributions you have! Let's squash those bugs together! 🐞

I found a similar open issue: minScrollDistancePerSwipe not available but documentation it is showing, which was last updated on September 25, 2024. The suggested solution is that there is no minScrollDistancePerSwipe in v3.5.1 [1].

The minScrollDistancePerSwipe prop is indeed present in the type definitions for react-native-reanimated-carousel, but it appears that this change was not included in version 3.5.1. You may need to update to a later version where this prop is available. The minScrollDistancePerSwipe prop is used in the ScrollViewGesture component to determine the minimum distance required for a swipe to be considered valid [2][3][4].

In version 4.0.0-alpha.10, the following change was noted:

## 4.0.0-alpha.10

### Patch Changes

- [#560](https://github.com/dohooo/react-native-reanimated-carousel/pull/560) [`c181174`](https://github.com/dohooo/react-native-reanimated-carousel/commit/c1811746e951ca32bf94bc2acca450fb2e58f55c) Thanks [@dohooo](https://github.com/dohooo)! - Add a new props `minScrollDistancePerSwipe` to set the minimum scroll instance to make carousel scroll.

You might want to consider upgrading to this version or later to use the minScrollDistancePerSwipe prop [5].

To continue talking to Dosu, mention @dosu.