Re:AppHub – Update React Native Apps Without Re-Submitting t...
by hharnisch on Wednesday August 12, 2015 @12:02PM
(#10048488)
It looks like you're sending the whole JS bundle when doing a deploy, do you think you'll support async loading? Would help with massive applications and other speed related optimizations.
[ Parent
| on HN ]
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by vjeux on Wednesday August 12, 2015 @12:40PM
(#10048830)
Right now React Native packager bundles everything in one file but we're actively working on splitting it into many different files and supporting require.ensure() in order to asynchronously load modules.
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by Touche on Wednesday August 12, 2015 @03:11PM
(#10049955)
Oh, so you're only going to support WebPack? That's disappointing.
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by skrebbel on Wednesday August 12, 2015 @03:27PM
(#10050053)
They take pull requests
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by spicyj on Wednesday August 12, 2015 @04:23PM
(#10050368)
No one said anything about webpack. If you have another async module loading syntax you'd prefer I'm sure we'd be happy to look at it.
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by Touche on Wednesday August 12, 2015 @04:40PM
(#10050477)
Webpack is the only loader that does require.ensure to my knowledge. To answer your question; there's also System.import() (SystemJS) and require([]) (any AMD loader like requirejs) that are async module loading.
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by spicyj on Wednesday August 12, 2015 @04:49PM
(#10050525)
React Native has its own packager, at least for now.
Re:AppHub – Update React Native Apps Without Re-Submitting t...
by arbesfeld on Wednesday August 12, 2015 @12:11PM
(#10048566)
Great question! Our iOS SDK asynchronously downloads new JS bundles and images, and then loads the updates when your app is restarted. There are definitely some speed optimizations that we can make in the future, such as using diffs to apply updates.
We're excited to open source the iOS SDK in the future so that everyone can take a look and contribute.