react-native/Examples/UIExplorer/UIExplorerUnitTests
Alex Kotliarskyi e2b25c8c9d Add multipart response stream reader
Summary:
Packager can take a long time to load and the progress is usually displayed in another window (Terminal). I'm adding support for showing a UI inside React Native app for packager's progress when loading a bundle.

This is how it will work:

1. React Native sends request to packager with `Accept: multipart/mixed` header.
2. Packager will detect that header to detect that client supports progress events and will reply with `Content-Type: multipart/mixed`.
3. While building the bundle it will emit chunks with small metadata (like `{progress: 0.3}`). In the end it will send the last chunk with the content of the bundle.
4. RN runtime will be receiving the events, for each progress event it will update the UI. The last chunk will be the actual bundle which will end the download process.

This workflow is totally backwards-compatible -- normally RN doesn't set the `Accept` header.

Reviewed By: mmmulani

Differential Revision: D3845684

fbshipit-source-id: 5b3d2c5a4c6f4718d7e5de060d98f17491e82aba
2016-10-03 18:13:36 -07:00
..
OCMock CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
Info.plist Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
LayoutSubviewsOrderingTest.m Bugfix - Typos 2015-12-15 09:09:32 -08:00
RCTAllocationTests.m Improve stability of RCTAllocationTests 2016-09-15 04:28:47 -07:00
RCTBridgeTests.m Support sync method calls in the objc bridge 2016-09-05 07:44:00 -07:00
RCTBundleURLProviderTests.m Removed calls to RCTBundleURLProvider setDefaults 2016-07-11 02:58:32 -07:00
RCTComponentPropsTests.m Remove code for testing without JS bundle 2016-07-11 13:33:55 -07:00
RCTConvert_NSURLTests.m Use mainBundle in RCTConvert to resolve asset paths 2015-11-05 09:30:36 -08:00
RCTEventDispatcherTests.m Use new enqueueJSCall method everywhere 2016-08-02 11:14:06 -07:00
RCTFontTests.m Apple TV support 1: existing Objective C code should compile for tvOS 2016-09-27 06:28:33 -07:00
RCTGzipTests.m Re-enable testUnderlyingBridgeIsDeallocated 2016-01-06 09:03:33 -08:00
RCTImageLoaderHelpers.h Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageLoaderHelpers.m Fix some linter warnings 2016-09-27 06:13:31 -07:00
RCTImageLoaderTests.m Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
RCTImageUtilTests.m Removed placeholder image logic 2016-04-25 03:31:19 -07:00
RCTJSCExecutorTests.m Move RCTJSCExecutorTests to ReactKitBenchmarks 2016-04-19 11:37:28 -07:00
RCTJSONTests.m Handle bad JSON data without crashing 2016-01-26 06:13:29 -08:00
RCTMethodArgumentTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTModuleInitNotificationRaceTests.m Add MessageQueue method for executing function and returning its result 2016-07-18 07:13:32 -07:00
RCTModuleInitTests.m Add MessageQueue method for executing function and returning its result 2016-07-18 07:13:32 -07:00
RCTModuleMethodTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTMultipartStreamReaderTests.m Add multipart response stream reader 2016-10-03 18:13:36 -07:00
RCTShadowViewTests.m Use single function for margin, position, padding, and border 2016-08-15 09:28:41 -07:00
RCTUIManagerTests.m Fixed unit tests 2016-06-07 12:43:49 -07:00
RCTURLUtilsTests.m Remove `hot` query string attribut when HL is disabled 2016-01-06 11:55:33 -08:00
TestBundle.js Fix snapshottests under iOS10 2016-08-17 10:44:01 -07:00
libOCMock.a [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00