diff --git a/React/Base/RCTBridgeDelegate.h b/React/Base/RCTBridgeDelegate.h index f29c7aae4..f866c94cf 100644 --- a/React/Base/RCTBridgeDelegate.h +++ b/React/Base/RCTBridgeDelegate.h @@ -63,6 +63,15 @@ */ - (NSArray *)whitelistedModulesForBridge:(RCTBridge *)bridge; +/** + * When loading initial JavaScript, do so synchronously when the bridge is created iff + * this returns true. Otherwise, the JS will be fetched on a network thread, and + * executed on the JS thread. Currently used only by C++ bridge. + * + * @experimental + */ +- (BOOL)shouldBridgeLoadJavaScriptSynchronously:(RCTBridge *)bridge; + /** * When initializing native modules that require main thread initialization, the bridge * will default to dispatch module creation blocks asynchrously. If we're blockingly