docs for unstable_enableSyncVoidMethods (#40779)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/40779

Changelog: [Internal]

adding docs to unstable_enableSyncVoidMethods config related methods

Reviewed By: mdvacca, cipolleschi

Differential Revision: D50160367

fbshipit-source-id: 6fc825f7225f11909e0749c75d03b2ddadc3d5aa
This commit is contained in:
Phillip Pan
2023-10-16 20:49:44 -07:00
committed by Facebook GitHub Bot
parent c7cf3e0cd5
commit 78b226c6ab
2 changed files with 5 additions and 0 deletions
@@ -36,6 +36,10 @@ public class ReactFeatureFlags {
*/
public static volatile boolean unstable_useTurboModuleInteropForAllTurboModules = false;
/**
* By default, native module methods that return void run asynchronously. This flag will make
* execution of void methods in TurboModules stay on the JS thread.
*/
public static volatile boolean unstable_enableTurboModuleSyncVoidMethods = false;
/**
@@ -70,6 +70,7 @@ public abstract class TurboModuleManagerDelegate {
return false;
}
/* Can TurboModule methods that return void execute on the JS thread? */
public boolean unstable_enableSyncVoidMethods() {
return false;
}