Adding configuration of Fabric inside ReactRootView.

Reviewed By: achen1

Differential Revision: D7102701

fbshipit-source-id: f655327372c42ad86042011a3af3ee693d14014a
This commit is contained in:
David Vacca
2018-03-01 10:24:14 -08:00
committed by Facebook Github Bot
parent 6b45fb2cb1
commit b5b0ee853e
4 changed files with 25 additions and 4 deletions

View File

@@ -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;