Skip to content

Commit

Permalink
Revert D24685389: Set up experiment to dispatch promise methods async…
Browse files Browse the repository at this point in the history
…hronously to NativeModules thread

Differential Revision:
D24685389 (052e578)

Original commit changeset: 8ceb2e6effc1

fbshipit-source-id: e48186dd0e928fe95cc7f2420fc02c00a62b8360
  • Loading branch information
ale-sisto authored and facebook-github-bot committed Nov 6, 2020
1 parent 052e578 commit 2af406b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public class ReactFeatureFlags {
*/
public static volatile boolean useTurboModules = false;

/** Should we dispatch TurboModule methods with promise returns to the NativeModules thread? */
public static volatile boolean enableTurboModulePromiseAsyncDispatch = false;

/*
* This feature flag enables logs for Fabric
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.facebook.react.bridge.JSIModule;
import com.facebook.react.bridge.JavaScriptContextHolder;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.config.ReactFeatureFlags;
import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import com.facebook.react.turbomodule.core.interfaces.TurboModuleRegistry;
Expand Down Expand Up @@ -61,7 +60,7 @@ public TurboModuleManager(
(CallInvokerHolderImpl) jsCallInvokerHolder,
(CallInvokerHolderImpl) nativeCallInvokerHolder,
delegate,
ReactFeatureFlags.enableTurboModulePromiseAsyncDispatch);
false);
installJSIBindings();

mEagerInitModuleNames =
Expand Down

0 comments on commit 2af406b

Please sign in to comment.