react-native-reanimated-carousel
react-native-reanimated-carousel copied to clipboard
[question] Is it possible to disable the overscroll?
By the default, it is possible to overscroll when swiping right on the first element and left on the last element.
As per title, is it possible to disable the overscroll altogether?
🔴
👨💻 I'm so busy recently, so I'm going away for a little while, but I'll come back by the end of this month.
♥️ Rest assured, I love this project, I will not give up.
2022.11.xx
Hello.
I dont know if it is your point, but did you try the loop prop? Just set it to false to disable overscroll.
I am also curious on the same. Disabling the loop is fine. But can we disable the elastic scroll at the edge of left and right most cards?
I want to stop scrolling at the edge of the left and right for specific scenarios. so can I?
Yes, I found it through enabled
prop you can achieve it.
Yes, I found it through
enabled
prop you can achieve it.
How? I dont want to disable all swiping, only when you reach the ends of the carousel.
There's a prop called overscrollEnabled, but it doesn't work
Same question here, could we provide sth like ScrollView bounces? Which won't let view bounces when reaches the end of content.
@dohooo any idea on this?
I figured it out. Modify this prop.
panGestureHandlerProps={{ failOffsetX: currentIndex == 0 ? 1 : currentIndex == item.images_array?.length-1 ? -1 : null }}