Live data from Hacker News

React Native for Android

code.facebook.com

11–20 of 248 posts

Re: React Native for Android

#11
post #6

The general feeling on HN is that it is better to focus on Native development on both platforms because Cordova hybrid apps have a overall bad user experience. Is this still the case with React Native or is it becoming the most effective option?

The issue is the developer. React-Native as a tool allows you to make poor design decisions, but it does nothing wrong itself. We need to be vigilant and remember to stick to native interactions.

Re: React Native for Android

#13
post #9

Yes! I've been working with React-Native on a side project for a few weeks now. WHAT A GODSEND! Before this, I was using Titanium, which is heavy, slow, and difficult to integrate with. React-Native felt like home. On a related note; Why is it up to Facebook to develop something like this? Why aren't Apple and Google making it this easy to develop apps? ObjC is a nightmare, 90% of apps out there don't need that level…

Lock-in.

Re: React Native for Android

#14
post #8
post #6

The general feeling on HN is that it is better to focus on Native development on both platforms because Cordova hybrid apps have a overall bad user experience. Is this still the case with React Native or is it becoming the most effective option?

React Native apps compile into native apps. That is, no Cordova.

My understanding is not that. They don't "compile into" anything. They're run as JavaScript on the phone. The difference is react native calls into native components -- it isn't a universal write once run anywhere. You'll have to craft different JavaScript for android versus iOS. Hopefully most of your code is business logic or other things than UI components.

Re: React Native for Android

#15
post #9

Yes! I've been working with React-Native on a side project for a few weeks now. WHAT A GODSEND! Before this, I was using Titanium, which is heavy, slow, and difficult to integrate with. React-Native felt like home. On a related note; Why is it up to Facebook to develop something like this? Why aren't Apple and Google making it this easy to develop apps? ObjC is a nightmare, 90% of apps out there don't need that level…

Why aren't Apple and Google making it this easy to develop apps?

Apple has no incentive to make it easier for app developers to port their code to other platforms.

Re: React Native for Android

#16
post #12

Interestingly, they seem to be using JavaScriptCore instead of V8 as their JavaScript interpreter: https://github.com/facebook/react-native/blob/42eb5464fd8a65...

As I recall, they announced that alongside React Native in January. I believe it was to avoid subtle differences between the JS executed on various platforms (e.g. to prevent a component from using a feature supported in V8 but not JSC).

Re: React Native for Android

#18
post #6

The general feeling on HN is that it is better to focus on Native development on both platforms because Cordova hybrid apps have a overall bad user experience. Is this still the case with React Native or is it becoming the most effective option?

An app built with React Native is indistinguishable from a "real" native app, unlike cordova apps it doesn't run in the browser (or in a webview).

Re: React Native for Android

#19
post #9

Yes! I've been working with React-Native on a side project for a few weeks now. WHAT A GODSEND! Before this, I was using Titanium, which is heavy, slow, and difficult to integrate with. React-Native felt like home. On a related note; Why is it up to Facebook to develop something like this? Why aren't Apple and Google making it this easy to develop apps? ObjC is a nightmare, 90% of apps out there don't need that level…

Google is working on it:

https://github.com/domokit/sky_engine and https://github.com/dart-lang/fletch

Re: React Native for Android

#20

"Today, we're happy to release React Native for Android." https://github.com/facebook/react-native/commit/42eb5464fd8a... This comes in time for Facebook to meet its pledge. http://www.reactnativeandroid.com/

Big props to the person that bought the domain and setup the countdown. It stimulated the team to actually meet this deadline :)
Post reply on HN