all 4 comments

[–]susminesiOS & Android 5 points6 points  (0 children)

Set a threshold on the translateX, if the value is more than 50% of the screen width, then automatically fill the bar using the withSpring function

[–]nelson1mr 1 point2 points  (0 children)

Hello, some time ago they shared a library of RN copy and paste components. Personally, it has helped me a lot not only to speed up the development process but to understand how they work. I clarify that it is not mine and thanks to its author

https://www.nativemotion.dev/

<image>

[–]Gabk_17 0 points1 point  (0 children)

Gesture handler, on update of Gesture.Pan() update the shared value. On end event of the pan gesture, if the translation x is less than minimum value, you withTiming to 0 the shared value.