Re:React Native for Android
by s73v3r on Monday September 14, 2015 @05:48PM
(#10217729)
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?
[ Parent
| on HN ]
Re:React Native for Android
by vickychijwani on Monday September 14, 2015 @05:59PM
(#10217791)
> 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").
I assume this is only in dev mode, as opposed to release mode?
Actually no, POCs have been made which allow you to deploy setups which allow for live updating apps in production. Apple even allows RCE as long as it's executed in the JS engine.
Got any sources for that? I've not found a single example of a react android app that shows "live updating apps in production". I'm talking about things like loading code seamlessly in the background from a CDN. There are examples for iOS though