Re:Introducing Sketch: A Playground for React Native from Ex...
by jesseruder on Tuesday March 14, 2017 @01:52PM
(#13869781)
There's this project: https://github.com/necolas/react-native-web that's similar to what you're describing. The downside is that you don't have access to any of the native APIs. Since we have an actually app we're able to support contacts, camera views, geolocation, etc.
Re:Introducing Sketch: A Playground for React Native from Ex...
by nathan_f77 on Tuesday March 14, 2017 @03:14PM
(#13870562)
I've written a little game in React Native, and I was really surprised when react-native-web just worked almost out of the box. If you don't have many native libraries, then it's really easy to write an app that works in a browser.
Re:Introducing Sketch: A Playground for React Native from Ex...
by jesseruder on Tuesday March 14, 2017 @03:29PM
(#13870696)
Definitely! http://www.reactnativeexpress.com/ uses it and it works really well for them.
I'm still trying to figure out whether it is possible to run RN directly in the browser using an interpreter instead of an emulator, along with something like emscripten (might have to run an emscripten-compiled JVM, too haha). Sounds really tricky, for one thing, any Android or iOS SDK calls would need intercepted and re-written for the browser, much like what WINE does.