BenJeau / react-native-draw

SVG based data-driven React Native drawing component 🎨
https://www.npmjs.com/package/@benjeau/react-native-draw
MIT License
127 stars 42 forks source link

Move to Gesture API introduced with react-native-gesture-handler 2 #54

Closed gfringeli closed 2 years ago

gfringeli commented 2 years ago

Currently, the gestures are handled using an older react-native-gesture-handler (RNGH) API, i.e. PanGestureHandler. Moving to the new Gesture API introduced with react-native-gesture-handler 2 would remove a warning notification popping up in the React Native app during development. In addition, in order to be able to use the old API when having installed version 2 of RNGH in some cases requires to add the line

import 'react-native-gesture-handler';

at very beginning of index.js of a React Native project. There does not seem agreement in the community about the extent and the source of this issue. But using the new API resolved the issue in my case.

BenJeau commented 2 years ago

Changes are pushed to new version v0.8.0 🚀