react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

@latekvo/fix_fling

Open latekvo opened this issue 1 year ago • 0 comments

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.tsx file

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

latekvo avatar Mar 08 '24 13:03 latekvo