Skip to content

Commit

Permalink
hook up unstable_enableSyncVoidMethods to ReactFeatureFlags (#39988)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39988

Changelog: [Internal]

in this pr, we integrate the sync void configuration with our feature flag infra

Reviewed By: luluwu2032

Differential Revision: D50030743

fbshipit-source-id: 03505e5e1f74aa90dc16f33fa4e93f9de9660dae
  • Loading branch information
philIip authored and facebook-github-bot committed Oct 11, 2023
1 parent 2e16785 commit 9f51a0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ interface ModuleProvider {
mShouldEnableLegacyModuleInterop
&& ReactFeatureFlags.unstable_useTurboModuleInteropForAllTurboModules;

private final boolean mEnableTurboModuleSyncVoidMethods =
ReactFeatureFlags.unstable_enableTurboModuleSyncVoidMethods;

protected ReactPackageTurboModuleManagerDelegate() {
super();
}
Expand Down Expand Up @@ -140,6 +143,10 @@ public boolean unstable_shouldRouteTurboModulesThroughLegacyModuleInterop() {
return mShouldRouteTurboModulesThroughLegacyModuleInterop;
}

public boolean unstable_enableSyncVoidMethods() {
return mEnableTurboModuleSyncVoidMethods;
}

@Nullable
@Override
public TurboModule getModule(String moduleName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class ReactFeatureFlags {
*/
public static volatile boolean unstable_useTurboModuleInteropForAllTurboModules = false;

public static volatile boolean unstable_enableTurboModuleSyncVoidMethods = false;

/**
* Should this application use the new (Fabric) Renderer? If yes, all rendering in this app will
* use Fabric instead of the legacy renderer.
Expand Down

0 comments on commit 9f51a0c

Please sign in to comment.