Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this library support react native? #23

Closed
dustturtle opened this issue Mar 14, 2018 · 4 comments
Closed

Does this library support react native? #23

dustturtle opened this issue Mar 14, 2018 · 4 comments

Comments

@dustturtle
Copy link

I want this work for RN, so cool~

@pshihn
Copy link
Collaborator

pshihn commented Mar 14, 2018

Don't suppose so because it works on HTML Canvas only at the moment.
I have plans to add native SVG rendering - maybe there's a way to integrate SVG into native.

@dustturtle
Copy link
Author

Oh, thanks a lot! Really awesome work you have done!

@henrymoulton
Copy link

@pshihn I've been looking into using this for React Native using https://github.com/react-native-community/react-native-svg, is there anyway this could work?

@pshihn
Copy link
Collaborator

pshihn commented Jan 26, 2020

@henrymoulton It may not work directly, but could be adapted to work with it now that RoughJS supports SVG. The obvious way is to use generators to create PathInfo objects. These are just object that define how the shape is draw. Then you can use this path info to render using react-native-svg. https://github.com/pshihn/rough/wiki/RoughGenerator#svg-path-info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants