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

Can this be ported to React Native? #27

Open
mafiusu opened this issue May 27, 2019 · 4 comments
Open

Can this be ported to React Native? #27

mafiusu opened this issue May 27, 2019 · 4 comments

Comments

@mafiusu
Copy link

mafiusu commented May 27, 2019

Hello I just wondered if this library can be ported to React Native and if yes? What should I consider if I do?

@jmsv23
Copy link
Contributor

jmsv23 commented May 27, 2019

This library use D3 for the graphics, on react native the svg's are handle in a particular way and the styles are different that the web standar, i am not entirely sure if D3 play nice with react native, but you can investigate the way to display graphics inside of a webview and use this library

@PotLid
Copy link
Contributor

PotLid commented Jun 14, 2019

You can refer the structural design of React JS, but need to change its component into targeted devices compatible component in React Native.
https://facebook.github.io/react-native/docs/components-and-apis.html

Check the React Native's API DOC

@mafiusu
Copy link
Author

mafiusu commented Jun 14, 2019

@jmsv23 @PotLid I'll definitely look into it since React Native supports almost all kind of svg elements ( Svg, Rect, Circle, Ellipse, Line, Polygon, Polyline, Path, Text, TSpan, TextPath, G, Use, Symbol, Defs, Image, ClipPath, LinearGradient, RadialGradient, Mask & Pattern)

@PotLid
Copy link
Contributor

PotLid commented Jun 15, 2019

@mafiusu Yes, Probably compatible elements can be used under Native Env. without any kinds of heavy modifications, yet If you use JSX (HTML) syntax which is not compatible, you need to fix it later on accordingly to the Native Env.

p.s If your issue is resolved, please close the issue. If it isn't, leave comments in the issue section, thanks.

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

No branches or pull requests

3 participants