react-native-gesture-handler
react-native-gesture-handler copied to clipboard
@latekvo/fix_fling
Description
Fixed fling component handler to activate based on fling velocity instead of fling distance. The fling also no longer has to be performed from start to finish entirely within the component's bounds. This feature was tested on both emulated and live android phones.
Test plan
- clone this branch
- run
yarn - go to
example - copy fling example from the docs into the
example/src/empty/EmptyExample.tsxfile
Web
- run
yarn start
Android
- go to
example/android - run
yarn start
IOS
- IOS remains unchanged, it already implements this mechanism in a different way.
Reference
https://github.com/software-mansion/react-native-gesture-handler/assets/74246391/6868ff68-4e6e-41fb-93a7-0cd35e85cd6e