Live data from Hacker News

React Native for Android

code.facebook.com

161–170 of 248 posts

Re: React Native for Android

#161
post #129

Earlier quoted context omitted.

Abstractions like these always target the least common denominator. But React has the "component" advantage so i'm not dismissing its usefulness. it's good for a category of projects.

Do you consider a facebook production app a least common denominator?

Do you really believe the facebook production app is built 100% with React Native ?

Re: React Native for Android

#162

Earlier quoted context omitted.

Android has JRebel for Android for hot reloads... https://zeroturnaround.com/software/jrebel-for-android/

I was not aware of this, so thanks for bringing it up. It's a pretty amazing technical feat that this works at all, but I have a hard time imagining this would work well in practice for changes to anything other than maybe method bodies and templates though. Java's style of object orientation generally means there's plenty of tight-coupling between application state and operations on the application state, which woul…

Its definitely hard, but JRebel has had 7 years to figure this stuff out and so far seems to work just as well on Android.

Only one way to find out tho :) Trying it out for oneself.

Re: React Native for Android

#163

Earlier quoted context omitted.

the key is to know in detail the limitations of this approach There's the rub. If you don't know anything about the native platform then you "don't know what you don't know". The NativeScript demo shows how to pull in a native ObjC function (a string related method I think), but if you start with no background in the native libraries how would you even know when you could be leveraging a native library function inste…

> But if you have the foundation and know the native platform, why jump ship to JS at all? I'm a (native) Android and JS developer. The primary reason I'm excited about React Native is that I don't have to go through the tedious compile-install cycle for every little UI change. React Native will make prototyping/iterating on Android as easy as it is on the web. However my reasoning assumes that there will be almost n…

Not having used ReactNative before, how would that change? Wouldn't you still have to at least redeploy the app to the phone if you change the JS?

Re: React Native for Android

#164
post #91

Slightly off topic but I'm curious about using React Native vs WebView with native wrapper and components. I'm a developer who primarily codes in Ruby. I'm working on a side project that will be mostly CRUD and have no DOM updates. The application will need to support web, mobile, and tablet. I'm considering using React so I can use React Native but I'm afraid I'm adding a level of unnecessary complexity. Originally,…

I would just make the project a webapp, and make sure that the site works well on mobile. Later on, when you have traction, and probably users, you can code up a native app for it (or if you have a lull of things to do and get bored :P)

Re: React Native for Android

#165

Earlier quoted context omitted.

the key is to know in detail the limitations of this approach There's the rub. If you don't know anything about the native platform then you "don't know what you don't know". The NativeScript demo shows how to pull in a native ObjC function (a string related method I think), but if you start with no background in the native libraries how would you even know when you could be leveraging a native library function inste…

> But if you have the foundation and know the native platform, why jump ship to JS at all? I'm a (native) Android and JS developer. The primary reason I'm excited about React Native is that I don't have to go through the tedious compile-install cycle for every little UI change. React Native will make prototyping/iterating on Android as easy as it is on the web. However my reasoning assumes that there will be almost n…

[deleted]

Re: React Native for Android

#166
post #163

Earlier quoted context omitted.

> But if you have the foundation and know the native platform, why jump ship to JS at all? I'm a (native) Android and JS developer. The primary reason I'm excited about React Native is that I don't have to go through the tedious compile-install cycle for every little UI change. React Native will make prototyping/iterating on Android as easy as it is on the web. However my reasoning assumes that there will be almost n…

Not having used ReactNative before, how would that change? Wouldn't you still have to at least redeploy the app to the phone if you change the JS?

> Wouldn't you still have to at least redeploy the app to the phone if you change the JS?

No, that's the beauty of it. All you need to do is shake your phone and tap the "Reload JS" option. Those JS files are served by some sort of a server that starts up on your dev machine when you first deploy the app. See https://facebook.github.io/react-native/docs/tutorial.html#d... (search for "reload js").

Re: React Native for Android

#167
post #126

Earlier quoted context omitted.

It uses Dart. Which despite looking like a nice language, approximately nobody knows. So I'm not sure this is really an viable alternative.

Most android developers have Java background. Dart fits better there.

Most web developers do not, which I believe is the target for these frameworks.

Re: React Native for Android

#168
post #94

Noob question - is it possible to learn React and build mobile apps for someone who is a web developer and has no knowledge/experience in mobile development?

It is possible to build an app purely in JS. The Facebook Ads Manager was built by a team where some people had mobile development experience and several people only had JS experience.

wow, we can expect whole lot of mobile apps then? There must be 10x web developers as mobile developers, at least?

Re: React Native for Android

#169
post #164
post #91

Slightly off topic but I'm curious about using React Native vs WebView with native wrapper and components. I'm a developer who primarily codes in Ruby. I'm working on a side project that will be mostly CRUD and have no DOM updates. The application will need to support web, mobile, and tablet. I'm considering using React so I can use React Native but I'm afraid I'm adding a level of unnecessary complexity. Originally,…

I would just make the project a webapp, and make sure that the site works well on mobile. Later on, when you have traction, and probably users, you can code up a native app for it (or if you have a lull of things to do and get bored :P)

I think you're right. I'll just do this.

Re: React Native for Android

#170
post #161

Earlier quoted context omitted.

Do you consider a facebook production app a least common denominator?

Do you really believe the facebook production app is built 100% with React Native ?

yeah

> Facebook Ads Manager is built entirely using React Native.

https://code.facebook.com/posts/1014532261909640/react-nativ...

Post reply on HN