use-gesture
use-gesture copied to clipboard
React Native support
Any plans?
Would you send in a PR for this? The code is small and It's just a bunch of events so it should be relatively straight forward to extend. I don't use RN so much that i know it.
Need this also.
problem is that i don't work with RN personally atm, i just don't know the api.
@brunolemos @daryl so this will soon happen, i will make it work with react-three-fiber so it has to be made cross platform, which then includes react-native. do you have any ideas how we can pull this off? i guess it needs to know some platform specifics, and the platform has to support start/move/end semantics.
I don't have experience with gestures but you'll probably need to use this api: https://facebook.github.io/react-native/docs/panresponder
Reach out to the author of react-native-gesture-handler
Using a View
, without using a ref, you can use {...bind()}
or similar, for now, and it works with https://github.com/necolas/react-native-web
Reach out to the author of react-native-gesture-handler
It looks like they are working on web support for react-native-gesture-handler
here: Web Support #555
Looking at the react-native-gesture-handler docs and examples and it's sooo much more complex than this library for simple use cases. React Native support would be welcome regardless of the work being done on react-native-gesutres even as an abstraction over it. The API for this library is just superior.
@danieloi That's always good to hear! Unfortunately I have zero knowledge about React Native, maybe @thephoenixofthevoid can help?