mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Adding configuration of Fabric inside ReactRootView.
Reviewed By: achen1 Differential Revision: D7102701 fbshipit-source-id: f655327372c42ad86042011a3af3ee693d14014a
This commit is contained in:
committed by
Facebook Github Bot
parent
6b45fb2cb1
commit
b5b0ee853e
@@ -88,6 +88,7 @@ public class ReactRootView extends SizeMonitoringFrameLayout
|
||||
private int mWidthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
||||
private int mHeightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
||||
private @Nullable Runnable mJSEntryPoint;
|
||||
private boolean mIsFabric = false;
|
||||
|
||||
public ReactRootView(Context context) {
|
||||
super(context);
|
||||
@@ -523,6 +524,14 @@ public class ReactRootView extends SizeMonitoringFrameLayout
|
||||
mReactInstanceManager.getCurrentReactContext().handleException(e);
|
||||
}
|
||||
|
||||
public void setIsFabric(boolean isFabric) {
|
||||
mIsFabric = isFabric;
|
||||
}
|
||||
|
||||
public boolean isFabric() {
|
||||
return mIsFabric;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public ReactInstanceManager getReactInstanceManager() {
|
||||
return mReactInstanceManager;
|
||||
|
||||
Reference in New Issue
Block a user