react-native-signature-canvas icon indicating copy to clipboard operation
react-native-signature-canvas copied to clipboard

Using this library in the web expo

Open theusccruz opened this issue 4 years ago • 7 comments

Is it possible to use this lib with Expo Web? I'm trying to do this but I have an error with forwardRef

theusccruz avatar Jun 26 '21 14:06 theusccruz

@theusccruz did you ever figure this out I'm curios

waltermvp avatar Jul 07 '21 13:07 waltermvp

@waltermvp I couldn't get this lib to work in the web expo, but I solved my problem in another way. My app needed mobile and web signatures, so I applied this lib to mobile expo and the react-signature-canvas lib to web expo.

theusccruz avatar Jul 07 '21 13:07 theusccruz

thank your for the quick response :) Interesting, can you elaborate on :

so I applied this lib to mobile expo and the react-signature-canvas lib to web expo.

@theusscruz

waltermvp avatar Jul 07 '21 14:07 waltermvp

you mean this for web ? https://github.com/agilgur5/react-signature-canvas

waltermvp avatar Jul 07 '21 14:07 waltermvp

@waltermvp Yes, I used this one right there for the web.

I have a repository with an application that does exactly what I said. As I am Brazilian, an initial part of the readme will be in Portuguese, but at the end of the readme I left the same explanations in translated to English

link: https://github.com/theusccruz/signature-app

theusccruz avatar Jul 07 '21 14:07 theusccruz

I hope this library focuses on the implementation of native functions. If you want to be compatible with the web, you can judge the Platform at the outer layer of the component to use other web-signed libraries. If you are interested, you can also try to submit a PR to be compatible with the web, thanks

YanYuanFE avatar Jul 14 '21 13:07 YanYuanFE

@YanYuanFE

Fine, thanks for the reply!

theusccruz avatar Jul 14 '21 14:07 theusccruz