mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 09:31:11 +08:00
Introduce mobile config flag to load classes for View Managers
Reviewed By: kathryngray Differential Revision: D6148468 fbshipit-source-id: d0f919f63922dae4b0720f22fa70ab4a7f67b48a
This commit is contained in:
committed by
Facebook Github Bot
parent
55f75dfd65
commit
f0fb720eaa
@@ -6,7 +6,6 @@ import static com.facebook.react.modules.systeminfo.AndroidInfoHelpers.getFriend
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.os.Build;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.bridge.JSBundleLoader;
|
||||
import com.facebook.react.bridge.JSCJavaScriptExecutorFactory;
|
||||
@@ -44,6 +43,7 @@ public class ReactInstanceManagerBuilder {
|
||||
private @Nullable RedBoxHandler mRedBoxHandler;
|
||||
private boolean mLazyNativeModulesEnabled;
|
||||
private boolean mLazyViewManagersEnabled;
|
||||
private boolean mDelayViewManagerClassLoadsEnabled;
|
||||
private @Nullable DevBundleDownloadListener mDevBundleDownloadListener;
|
||||
private @Nullable JavaScriptExecutorFactory mJavaScriptExecutorFactory;
|
||||
private boolean mUseSeparateUIBackgroundThread;
|
||||
@@ -204,6 +204,12 @@ public class ReactInstanceManagerBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReactInstanceManagerBuilder setDelayViewManagerClassLoadsEnabled(
|
||||
boolean delayViewManagerClassLoadsEnabled) {
|
||||
mDelayViewManagerClassLoadsEnabled = delayViewManagerClassLoadsEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReactInstanceManagerBuilder setDevBundleDownloadListener(
|
||||
@Nullable DevBundleDownloadListener listener) {
|
||||
mDevBundleDownloadListener = listener;
|
||||
@@ -290,6 +296,7 @@ public class ReactInstanceManagerBuilder {
|
||||
mRedBoxHandler,
|
||||
mLazyNativeModulesEnabled,
|
||||
mLazyViewManagersEnabled,
|
||||
mDelayViewManagerClassLoadsEnabled,
|
||||
mDevBundleDownloadListener,
|
||||
mUseSeparateUIBackgroundThread,
|
||||
mMinNumShakes,
|
||||
|
||||
Reference in New Issue
Block a user