react-native-reanimated-carousel icon indicating copy to clipboard operation
react-native-reanimated-carousel copied to clipboard

Return to the current element if scrolling is not enough.

Open OpachiEg opened this issue 1 year ago • 5 comments

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?

OpachiEg avatar Dec 20 '23 15:12 OpachiEg

this is a such big issue and finally found someone who asked the question. However, strange enough nobody has answered.

bimix avatar Jan 03 '24 16:01 bimix

I'm not quite sure I get it. Can you show me an example for this?

dohooo avatar Jan 13 '24 23:01 dohooo

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.

OpachiEg avatar Jan 16 '24 14:01 OpachiEg

Did anybody find a solution to this?

Nitrammets avatar Apr 28 '24 21:04 Nitrammets

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.

nmassey avatar May 04 '24 18:05 nmassey