mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c7cf3e0cd5
commit
78b226c6ab
+4
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user