News for hackers. Stuff that matters.
Re:“Swift will be open source later this year” by briandear on Monday June 08, 2015 @04:43PM (#9682244)
How is React "native" again? I'm not sure I understand how something not written in Swift or Obj. C is 'native.' This is only 30% snark; I actually don't know the answer. React is from the same people that thought html5 was a good idea for a mobile application right? I am not bashing React; I am only curious how it's considered native. Does it have official support from the iOS APIs? Can you integrate Objective C libraries with React? I just don't get it.

I also don't get how a JSON parse takes half a day. If you know the language it shouldn't take that much time. If you don't know the language then a complaint wouldn't be intellectually honest would it?

Re:“Swift will be open source later this year” by lobster_johnson on Monday June 08, 2015 @05:04PM (#9682402)
I don't think the parent was saying React is native. He's referring to a project called React Native, which provides native rendering (eg., <Button> binds to a native button implemented in ObjC) in a PhoneGap/Cordova-style wrapper that lets you implement bridged access to native code (to talk to Apple-specific APIs or to implement performance-sensitive code, for example). In such an app, you would be able to get a native "look and feel" despite the application being written mostly in JS.
Re:“Swift will be open source later this year” by ErikHuisman on Monday June 08, 2015 @04:57PM (#9682347)
As far as i understand. It uses a javascript runtime on its own thread to parse "instructions" to native components dynamically. To answer your questions. yes, yes, yesno.

Reacts philosophy is to learn once write everywhere. If you know reactjs then it is just as easy to write react native as it is exactly the same (clear and concise) but with different api's available. The instructions are written in javascript the rendering can be done in dom, obejective-c, java.. etc.etc.

Would it be intellectually honest to place a 30% snark if you don't know the language?

Re:“Swift will be open source later this year” by girvo on Tuesday June 09, 2015 @01:41AM (#9684238)
They mean "React Native"[0], not React itself :)

[0] http://reactnative.com