3 ms·
> 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 a
by vickychijwani 11y ago
> 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#development https://facebook.github.io/react-native/docs/tutorial.html#d... (search for "reload js").
- s73v3r 11y agoI assume this is only in dev mode, as opposed to release mode?
- iLoch 11y agoActually 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.
- anshulsin 11y agoGot 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