react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

Support for React Native

Open Marnnn opened this issue 9 years ago • 11 comments

Great library! Can this work with React Native? I'm pretty novice and had a quick attempt but getting a lot of red boxes. If not is there potential for creating a version that works with it?

Marnnn avatar Feb 21 '17 12:02 Marnnn

Hey @Marnnn ,

My understanding of react-native is that it requires packages to not use css. We've been tossing around a notion of introducing a root component called ReactVis that would allow users to declare whether they wanted styling to be handled inline (as react-native requires) or in stylesheets. That said there might be deeper issues preventing us from adding react-native support. I'd be open to hear thoughts from anyone who knows more about that topic than I do!

mcnuttandrew avatar Feb 28 '17 23:02 mcnuttandrew

Hi, Is there any update on this topic? I'm looking into charting library that support react-native too. At the moment, the victory and victory-native seem work well on react and react-native, but I do like the simplicity of the react-vis. Thanks!

rickcodetalk avatar May 11 '17 05:05 rickcodetalk

There hasn't been any progress on this topic unfortunately, it still very much a nice to have, and not a critical path feature

mcnuttandrew avatar May 12 '17 05:05 mcnuttandrew

How would this work with d3?

On Thu, May 11, 2017 at 10:11 PM, Andrew McNutt [email protected] wrote:

There hasn't been any progress on this topic unfortunately, it still very much a nice to have, and not a critical path feature

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uber/react-vis/issues/278#issuecomment-300985408, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEzW99iOYG2yxzRYr8io_8mfGsn1m7Xks5r4-oVgaJpZM4MHQUm .

ericsoco avatar May 12 '17 16:05 ericsoco

Sorry, hit send too soon -- have we abstracted d3 completely away from the DOM? In that case, theoretically doable...just wondering how feasible in practice.

On Fri, May 12, 2017 at 9:01 AM, Eric Socolofsky [email protected] wrote:

How would this work with d3?

On Thu, May 11, 2017 at 10:11 PM, Andrew McNutt [email protected] wrote:

There hasn't been any progress on this topic unfortunately, it still very much a nice to have, and not a critical path feature

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uber/react-vis/issues/278#issuecomment-300985408, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEzW99iOYG2yxzRYr8io_8mfGsn1m7Xks5r4-oVgaJpZM4MHQUm .

ericsoco avatar May 12 '17 16:05 ericsoco

React-vis uses only react for it's DOM manipulation, so it is completely do-able! That said, there are just some tough questions to answer.

  • Should this be part of react-vis, or should there be a separate repo (react-vis-native)? If the former, how do we keep the package size down? if the latter we probably need to abstract a number of things within react-vis to make the change over more feasible.

  • Should we develop each one of the marks as their own view components or use a svg package such as https://github.com/react-native-community/react-native-svg (which is what victory charts does)

  • Why would we want to do this? react-vis was originally developed for uber's numerous web-based visualization systems, is there a pressing need to push our API into the native world? If so, how will we be better than victory-charts?

mcnuttandrew avatar May 12 '17 16:05 mcnuttandrew

we can consider doing a react-vis-native repo but that is not in the roadmap for now.

jckr avatar Mar 09 '18 18:03 jckr

Hi, is this still off the roadmap? I'd be happy to contribute to this if it's activated.

eduardopelitti avatar Jun 06 '19 15:06 eduardopelitti

+1

scinfu avatar May 13 '21 05:05 scinfu

Any plans for the future of native charts?

asherccohen avatar Jun 21 '21 06:06 asherccohen

Any updates on React Native ?

abdemirza avatar Dec 17 '21 02:12 abdemirza