Live data from Hacker News

Use ReactJS to Build Native Apps

twitter.com

41–50 of 175 posts

Re: Use ReactJS to Build Native Apps

#41
I can't wait to see more details about this. I hope this isn't another botched attempt at trying to solve the cross compiled native app challenge. I've seen and signed up for so many hype machines for solving this problem including plain old responsive web apps, Adobe AIR, Phone Gap, Corona, and Famo.us. I've invested time in learning about all of these platforms, but in the end they all fell short in some way or another. I have high hopes for $FB though because I've really enjoyed most of the projects they've open sourced including React and Pop. Personally, it's been easier for me to just learn and use Swift/Obj-C. The main caveat is that my apps are limited to running on iOS.

Re: Use ReactJS to Build Native Apps

#42

Hi, I'm Jordan from the React team. I'm happy to answer any questions about React Native, but @vjeux will be giving a more thorough talk tomorrow that you won't want to miss (if you're at ReactJSConf), so I might wait for him to answer some of them. This is not the DOM. This is not a web view. If you know ReactJS, you can build native apps with React Native.

How does it compare to AsyncDisplayKit?

Re: Use ReactJS to Build Native Apps

#43

This is massive. Some more details: "React Native: everything native, controlled by async batched JS put in a background thread. Learn once, write everywhere. #reactjsconf" [1] "Fb groups app in iOS App Store is powered by it #reactjsconf" [2] "iOS and Android native using all the same ideas as React, all the power of native." [3] React has been gaining traction as I'm sure we're all aware, but this is next-level stu…

ahem. my bet - https://github.com/facebook/css-layout cannot wait for more details.

Seems like you won the pot. @vjeux will be giving a bigger talk about it tomorrow and he's the biggest contributor to the css project (https://github.com/facebook/css-layout/graphs/contributors).

Re: Use ReactJS to Build Native Apps

#45
post #31
post #12

Earlier quoted context omitted.

You can use ReactJS now with Cordova/PhoneGap - no problemo. This announcement is about replacing html elements (div, h1, img, etc.) with native elements. Should be faster going native than via web elements.

So does it use PhoneGap or something like it?

No, because PhoneGap uses the DOM.

Re: Use ReactJS to Build Native Apps

#46
post #32
post #20

This is awesome news. I've been working on a desktop application using React, node-webkit and browserify and it's been a great development experience. Being able to leverage web technologies to build native apps has been a huge time saver. However, I'm relying on the NodeJS components in order to do things like access the file system and fork commands. I'm wondering how React Native will handle this functionality. Wi…

Native APIs are exposed as JS modules. And XHR, for example, is polyfilled in terms of whatever native capability exposed. You can totally use npm modules, provided any module that it uses is polyfilled.

Would you be willing to elaborate re my reply to colinramsay?

Re: Use ReactJS to Build Native Apps

#48

Hi, I'm Jordan from the React team. I'm happy to answer any questions about React Native, but @vjeux will be giving a more thorough talk tomorrow that you won't want to miss (if you're at ReactJSConf), so I might wait for him to answer some of them. This is not the DOM. This is not a web view. If you know ReactJS, you can build native apps with React Native.

Is there sample code? Will this be open sourced?

Re: Use ReactJS to Build Native Apps

#50

Hi, I'm Jordan from the React team. I'm happy to answer any questions about React Native, but @vjeux will be giving a more thorough talk tomorrow that you won't want to miss (if you're at ReactJSConf), so I might wait for him to answer some of them. This is not the DOM. This is not a web view. If you know ReactJS, you can build native apps with React Native.

There will be more detail tomorrow, but at a high level: * JS engine on a background thread * Communicates via batched, async messaging protocol to a native (objc or android) server running on the main thread (basically create_view(), update_view(), destroy_view(), on_event() etc) * Plug-in for React that speaks that protocol * Tools to make cross-platform dev a bit easier (standard text component, cross-platform fle…

Cannot wait!
Post reply on HN