react-native-reanimated-carousel
react-native-reanimated-carousel copied to clipboard
Return to the current element if scrolling is not enough.
I'm trying to create a TikTok feed page, but when scrolling it always scrolls to the next element. Is it possible to somehow implement this functionality?
this is a such big issue and finally found someone who asked the question. However, strange enough nobody has answered.
I'm not quite sure I get it. Can you show me an example for this?
https://github.com/dohooo/react-native-reanimated-carousel/assets/54101046/1b8da7c7-d5ad-4b13-aba6-02c616f9e98a
Here's an example from Youtube Shorts. If the scrolling is small, then it returns to the current element. But in the case of a carousel, it always goes either forward or backward, even if the scrolling is minimal.
Did anybody find a solution to this?
I've got a proposed fix in #596 . See the screen recordings in that PR to see what the new behavior is. I've been using this fix in production for a couple of months, and this seems to work well for my purposes.