mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 23:18:06 +08:00
add flag to test running BG UI operation on a separate thread from the native modules thread
Reviewed By: achen1 Differential Revision: D4912045 fbshipit-source-id: b0b1aea24f8d463b95369636b7df2422a23aab22
This commit is contained in:
committed by
Facebook Github Bot
parent
97a86634f7
commit
3a3e5affc3
@@ -152,6 +152,7 @@ public class ReactInstanceManager {
|
||||
private final boolean mLazyNativeModulesEnabled;
|
||||
private final boolean mLazyViewManagersEnabled;
|
||||
private final boolean mSetupReactContextInBackgroundEnabled;
|
||||
private final boolean mUseSeparateUIBackgroundThread;
|
||||
|
||||
private final ReactInstanceDevCommandsHandler mDevInterface =
|
||||
new ReactInstanceDevCommandsHandler() {
|
||||
@@ -223,7 +224,8 @@ public class ReactInstanceManager {
|
||||
@Nullable RedBoxHandler redBoxHandler,
|
||||
boolean lazyNativeModulesEnabled,
|
||||
boolean lazyViewManagersEnabled,
|
||||
boolean setupReactContextInBackgroundEnabled) {
|
||||
boolean setupReactContextInBackgroundEnabled,
|
||||
boolean useSeparateUIBackgroundThread) {
|
||||
|
||||
initializeSoLoaderIfNecessary(applicationContext);
|
||||
|
||||
@@ -253,6 +255,7 @@ public class ReactInstanceManager {
|
||||
mLazyNativeModulesEnabled = lazyNativeModulesEnabled;
|
||||
mLazyViewManagersEnabled = lazyViewManagersEnabled;
|
||||
mSetupReactContextInBackgroundEnabled = setupReactContextInBackgroundEnabled;
|
||||
mUseSeparateUIBackgroundThread = useSeparateUIBackgroundThread;
|
||||
|
||||
// Instantiate ReactChoreographer in UI thread.
|
||||
ReactChoreographer.initialize();
|
||||
|
||||
Reference in New Issue
Block a user