react-native/Examples
Nick Lockwood e00b9ac8f3 Added incremental XMLHttpRequest updates
Summary:
@public

Previously, our XMLHttpRequest implementation would only update the readyState when the download was fully completed. This diff adds support for receiving incremental data updates as the download happens, which can be monitored by adding the onreadystatechange event handler.

As a performance optimization, incremental data updates are only sent if the onreadystatechanged handler has been set in the JS, otherwise it just sends the whole data block once download is complete, as before.

Test Plan:
* Run the UIExplorer XMLHttpRequest example (in both OSS and Catalyst) to see incremental downloads working.
* Run the Movies app to see regular (non-incremental) downloads in action
* Run any network-based app in Catalyst shell to verify RKDataManager still works
2015-06-05 15:21:25 -08:00
..
2048 [Flow] v0.11.0 cleaning - Part 14 (react-native-github) 2015-05-13 13:24:36 -07:00
Movies Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
SampleApp [SampleApp + UIExplorer] Typos in the tests 2015-06-02 19:48:17 -08:00
TicTacToe Fixed reachability 2015-04-20 08:33:56 -08:00
UIExplorer Added incremental XMLHttpRequest updates 2015-06-05 15:21:25 -08:00