use-gesture icon indicating copy to clipboard operation
use-gesture copied to clipboard

React Native support

Open brunolemos opened this issue 6 years ago • 10 comments

Any plans?

brunolemos avatar Jan 09 '19 20:01 brunolemos

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.

drcmda avatar Jan 10 '19 08:01 drcmda

Need this also.

daryl avatar Feb 07 '19 21:02 daryl

problem is that i don't work with RN personally atm, i just don't know the api.

drcmda avatar Feb 07 '19 22:02 drcmda

@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.

drcmda avatar Mar 07 '19 23:03 drcmda

I don't have experience with gestures but you'll probably need to use this api: https://facebook.github.io/react-native/docs/panresponder

brunolemos avatar Mar 08 '19 00:03 brunolemos

Reach out to the author of react-native-gesture-handler

ziyoshams avatar Apr 30 '19 03:04 ziyoshams

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

noeljackson avatar May 09 '19 23:05 noeljackson

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

jcarraway avatar Jul 04 '19 15:07 jcarraway

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 avatar Sep 16 '20 13:09 danieloi

@danieloi That's always good to hear! Unfortunately I have zero knowledge about React Native, maybe @thephoenixofthevoid can help?

dbismut avatar Sep 16 '20 14:09 dbismut