Permalink
Browse files

Sync support for new ios bridge

Reviewed By: javache

Differential Revision: D3897528

fbshipit-source-id: f30d2b1c490c1a9f7fc1f136858e6c7a146b9ca2
  • Loading branch information...
1 parent d7a2d3a commit 97e3c091f84d86cfb6d07399b131ff4bf93f67fd @mhorowitz mhorowitz committed with Facebook Github Bot 7 Sep 26, 2016
Showing with 9 additions and 0 deletions.
  1. +9 −0 React/Base/RCTBridgeDelegate.h
@@ -64,6 +64,15 @@
- (NSArray<Class> *)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
* waiting on the main thread to finish bridge creation on the main thread, this will

0 comments on commit 97e3c09

Please sign in to comment.