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

react-native port? #52

Closed
npreiser opened this issue Feb 1, 2019 · 3 comments
Closed

react-native port? #52

npreiser opened this issue Feb 1, 2019 · 3 comments

Comments

@npreiser
Copy link

npreiser commented Feb 1, 2019

I would love to use this in a react native app, has anyone tried to convert this

@jaames jaames changed the title Is is possible to convert this to a react-native module react-native port? Feb 1, 2019
@jaames
Copy link
Owner

jaames commented Feb 1, 2019

Hey @npreiser !

As far as I know, nobody has ported iro.js to React Native yet.

With that said, the next major version of the library (currently in beta) is built with Preact, so all the controls are JSX components with a react-like API. It might not be too far-fetched to port that to React Native.

If somebody wanted to sponsor an official port, or try to port it themselves, that would be awesome. But at the moment I think it's too far outside the scope of what I'm willing to put into the official library myself.

@jaames jaames closed this as completed Feb 1, 2019
@bad-jesus
Copy link

Hi James, I would be willing to sponsor this if you are interested.

@jaames
Copy link
Owner

jaames commented Sep 14, 2022

Hi James, I would be willing to sponsor this if you are interested.

Thanks for the offer! To be honest I'm not sure how productive I could be here.

I have basically no experience with React Native, but last time I looked into this, I think I concluded that there aren't really any suitable options for drawing dynamic SVG/Canvas style graphics that don't rely on a hacky webview setup or something similar, which makes things fairly non-trivial. I did recently have this idea of drawing the UI in a WebGL fragment shader for VR/AR, if React Native provides access to underlying graphics APIs maybe that's an option?

But TL;DR, without a clear idea of how to handle UI rendering, I'd hate to take somebody's money and not deliver satisfying results, so I might have to decline unfortunately.

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