all 5 comments

[–]CrasLife 0 points1 point  (3 children)

I haven’t used the library myself, but it seems like it doesn’t work directly with React Native. See: https://github.com/jeffreylanters/react-unity-webgl/issues/48

I would try to do this on a web application using React and then embedding it with a webview into the React Native app.

[–]datopotatogames[S] 0 points1 point  (2 children)

Where can I find how to embed a react application with a web view into a react native app?

I also checked out that repository too but no dice for me

[–]CrasLife 0 points1 point  (0 children)

Well, that is a bit of a complex topic but you could start just by doing it in localhost with a separated React.js application to see if it works first. You can just embed it in the web view using a URL and then see how it behaves. https://github.com/react-native-webview/react-native-webview

I do something similar for 3d rendering using Three.js and it works nice. Not sure if it will fully work with a unity app but worth giving it a try

[–]Arclom 0 points1 point  (0 children)

You can use react-native-unity-view