react-native/React
Janic Duplessis ef23d2bdcf Show bundle download progress on iOS
Summary:
This shows progress for the download of the JS bundle (different from the packager transform progress that we show already). This is useful especially when loading the JS bundle from a remote source or when developing on device (on simulator + localhost it pretty much just downloads instantly). This will be nice for the expo client since all bundles are loaded over the network and can take several seconds to load.

This depends on https://github.com/facebook/metro-bundler/pull/28 to work but won't crash or anything without it, it just won't show the progress percentage.

![img_05070155d2cc-1](https://user-images.githubusercontent.com/2677334/28293828-2c08d974-6b24-11e7-9334-e106ef3326d9.jpeg)

**Test plan**
Tested that bundle download progress is shown properly in RNTester on both localhost + simulator and on real device with network conditionner to simulate a slow loading bundle.

Tested that it doesn't cause issues if the packager doesn't send the Content-Length header.
Closes https://github.com/facebook/react-native/pull/15066

Differential Revision: D5449073

Pulled By: shergin

fbshipit-source-id: 43a8fb559393bbdc04f77916500e21898695bac5
2017-08-14 11:05:35 -07:00
..
Base Show bundle download progress on iOS 2017-08-14 11:05:35 -07:00
CxxBridge Implement lazy discovery scaffolding for loading NativeModules on demand. 2017-08-11 06:41:33 -07:00
CxxModule Fix format specifier used in RCTCxxMethod 2017-08-08 11:55:17 -07:00
CxxUtils More efficient dynamic->NSString conversion. 2017-07-26 18:31:12 -07:00
DevSupport Force the debugger to disconnect before a bundle reload 2017-08-14 08:16:52 -07:00
Executors Add more information to `__fbBatchedBridge is undefined` error 2017-07-26 11:21:59 -07:00
Inspector Force the debugger to disconnect before a bundle reload 2017-08-14 08:16:52 -07:00
Modules Fix format specifier used in RCTUIManager 2017-08-09 04:25:08 -07:00
Profiler Configure requiresMainQueueSetup for core modules 2017-08-07 07:04:36 -07:00
React.xcodeproj Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
ReactLegacy.xcodeproj Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
Views Apple TV: RCTTabBar selection controlled by native after render (fix #15081) 2017-08-10 05:36:06 -07:00
third-party.xcconfig More attempts to fix Travis CI runs 2017-05-10 04:32:54 -07:00