react-native/React/Base
Adam Ernst c7a590655c Expose a method to synchronously load bundle if possible
Summary:
This diff exposes a new experimental method `[RCTJavaScriptLoader +attemptSynchronousLoadOfBundleAtURL:sourceLength:error:]`. It may be used if you know that a specific call site must load its JavaScript synchronously, or else fail entirely.

This new API will succeed for file URLs that point to a RAM bundle. It will fail for non-RAM-bundle files and for HTTP URLs.

This also cleans up the error domain and codes for this class. This should be the only externally visible change from this diff if you don't use the new API: the codes and domains you receive from the API may change slightly. They were pretty sloppy and undocumented before, so I think this change is for the better.

Reviewed By: bnham

Differential Revision: D3545956

fbshipit-source-id: 30e65f4e8330d2d68f3f50ade077fdc1db4a435e
2016-07-12 05:28:36 -07:00
..
RCTAssert.h Display JS exceptions and stacks in a red box. 2016-06-30 19:43:28 -07:00
RCTAssert.m Display JS exceptions and stacks in a red box. 2016-06-30 19:43:28 -07:00
RCTBatchedBridge.m nil out pendingCalls when we're done with them 2016-07-11 13:33:58 -07:00
RCTBridge+Private.h Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTBridge.h Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTBridge.m Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTBridgeDelegate.h Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTBridgeMethod.h Prepare the bridge for C++ 2015-09-18 15:04:28 -07:00
RCTBridgeModule.h Standardize Error objects for Promises 2016-01-19 12:20:37 -08:00
RCTBundleURLProvider.h Replaced CTLSettings with RCTBundleURLProvider internally 2016-06-09 07:28:19 -07:00
RCTBundleURLProvider.m Renamed updateObject:forKey to updateValue:forKey 2016-07-11 03:43:23 -07:00
RCTConvert.h Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTConvert.m Remove CUIICatalog invalid asset name supplied error 2016-07-01 11:29:50 -07:00
RCTDefines.h Add RCT_PROFILE define 2016-06-13 04:28:38 -07:00
RCTDisplayLink.h Pull CADisplayLink into a separate file 2016-03-29 19:53:20 -07:00
RCTDisplayLink.m Allow RCTDisplayLink to pause more often 2016-07-11 08:28:24 -07:00
RCTEventDispatcher.h Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
RCTEventDispatcher.m Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
RCTFrameUpdate.h Pause JS DisplayLink if nothing to process. 2015-09-29 09:22:10 -07:00
RCTFrameUpdate.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTImageSource.h iOS: Support HTTP headers for source prop on <Image> components 2016-06-01 10:43:28 -07:00
RCTImageSource.m iOS: Support HTTP headers for source prop on <Image> components 2016-06-01 10:43:28 -07:00
RCTInvalidating.h Remove isValid from RCTInvalidating 2015-08-14 01:57:18 -08:00
RCTJSStackFrame.h Class for JS stack frames instead of dictionaries 2016-07-11 06:13:32 -07:00
RCTJSStackFrame.m Class for JS stack frames instead of dictionaries 2016-07-11 06:13:32 -07:00
RCTJavaScriptExecutor.h Make executeAsyncBlockOnJavaScriptQueue required 2016-07-07 13:43:39 -07:00
RCTJavaScriptLoader.h Expose a method to synchronously load bundle if possible 2016-07-12 05:28:36 -07:00
RCTJavaScriptLoader.m Expose a method to synchronously load bundle if possible 2016-07-12 05:28:36 -07:00
RCTKeyCommands.h Add Shortcut "Double R" to Reload JS in iOS 2016-06-01 03:43:27 -07:00
RCTKeyCommands.m Disable the double R shortcut to reload JS in iOS 2016-06-14 05:30:30 -07:00
RCTLog.h Provide log source to handler 2015-11-11 06:44:30 -08:00
RCTLog.m Added unit tests for module init 2016-03-01 09:44:37 -08:00
RCTModuleData.h Replaced isMainThread checks with a proper test for main queue 2016-06-06 07:58:36 -07:00
RCTModuleData.m Automated changes to remove implicit capture of self in blocks: Libraries/FBReactKit/BUCK 2016-07-07 12:44:14 -07:00
RCTModuleMethod.h Implement Android's dispatchViewManagerCommand interface on iOS 2016-01-06 05:58:37 -08:00
RCTModuleMethod.m Allow RCTDisplayLink to pause more often 2016-07-11 08:28:24 -07:00
RCTNullability.h Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTParserUtils.h Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTParserUtils.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTPerformanceLogger.h Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTPerformanceLogger.m Refactor RCTPerformanceLogger to avoid having global state 2016-07-07 07:29:57 -07:00
RCTRootView.h remove dead code 2016-02-29 10:09:54 -08:00
RCTRootView.m Automated changes to remove implicit capture of self in blocks: Libraries/FBReactKit/BUCK 2016-07-07 12:44:14 -07:00
RCTRootViewDelegate.h Prevent RCTRootView delegate call 2015-11-13 08:28:28 -08:00
RCTRootViewInternal.h Introduction of RCTRootViewDelegate 2015-10-26 15:41:36 -07:00
RCTTouchEvent.h RCTTouchEvent's init takes coalescing key 2016-04-01 06:54:49 -07:00
RCTTouchEvent.m improved description for RCTTouchEvent 2016-05-24 05:13:27 -07:00
RCTTouchHandler.h API for cancelling RCTTouchHandler 2016-01-21 13:46:52 -08:00
RCTTouchHandler.m different coalescing key for `touchCancel` events 2016-05-12 08:11:24 -07:00
RCTURLRequestDelegate.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTURLRequestHandler.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTUtils.h Replaced isMainThread checks with a proper test for main queue 2016-06-06 07:58:36 -07:00
RCTUtils.m Replaced isMainThread checks with a proper test for main queue 2016-06-06 07:58:36 -07:00
RCTWebSocketProxy.h Enable persistent socket between packager and bridge (1/N). 2016-02-16 23:05:36 -08:00
RCTWebSocketProxyDelegate.h Enable persistent socket between packager and bridge (1/N). 2016-02-16 23:05:36 -08:00