News for hackers. Stuff that matters.
Re:Use ReactJS to Build Native Apps by diverightin63 on Wednesday January 28, 2015 @02:00PM (#8961790)
I am pretty confused as to what this actually does. How can it be native?
Re:Use ReactJS to Build Native Apps by aakilfernandes on Wednesday January 28, 2015 @02:01PM (#8961802)
My guess is we're missing an important piece of the puzzle. Unless they have a js to everything interpreter. In which case thats much bigger news than react.
Re:Use ReactJS to Build Native Apps by taurath on Wednesday January 28, 2015 @04:43PM (#8962725)
Its more of a shiv to convert react elements/calls into native UI elements, using a native server to receive streams/messages (unsure which) and convert them.
Re:Use ReactJS to Build Native Apps by amasad on Wednesday January 28, 2015 @02:22PM (#8961893)
Instead of having React render to the DOM it renders to Native views. Be it iOS, or Android.
Re:Use ReactJS to Build Native Apps by candl on Wednesday January 28, 2015 @02:32PM (#8961957)
I doubt it would happen at runtime in iOS/Android, though? They would need to ship a JS interpreter that gets run on application startup, parse the React files, instantiate the native controls and create a bridge between them back to the JS interpreter?

Well on second thought I guess Appcelerator Titanium does something similar. So it's native UI only, but with the added overhead (JS interpreter + bridge, larger binary size, slower startup, etc.).

Re:Use ReactJS to Build Native Apps by danabramov on Friday January 30, 2015 @08:49AM (#8971947)
>They would need to ship a JS interpreter that gets run on application startup

Um, why? They already have JavaScriptCore (it's an iOS API).

Re:Use ReactJS to Build Native Apps by untog on Wednesday January 28, 2015 @02:34PM (#8961977)
Depends. There could be a build step that compiles all that logic. Or there could indeed by a JS runtime.