Skip to content

Commit a56c158

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Enable Fabric in logbox
Summary: This diff enables Fabric in logbox in the facebook app changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D28031255 fbshipit-source-id: 8abc301651ad09e4e48c88961bc7f3b91e6c4ae3
1 parent 3d0cf8d commit a56c158

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ public JavaScriptExecutorFactory getJavaScriptExecutorFactory() {
318318
Activity currentActivity = getCurrentActivity();
319319
if (currentActivity != null) {
320320
ReactRootView rootView = new ReactRootView(currentActivity);
321-
321+
rootView.setIsFabric(ReactFeatureFlags.enableFabricInLogBox);
322322
rootView.startReactApplication(ReactInstanceManager.this, appKey, null);
323-
324323
return rootView;
325324
}
326325

ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,7 @@ public static boolean enableRuntimeExecutorFlushing() {
9292

9393
return false;
9494
}
95+
96+
/** Enables Fabric for LogBox */
97+
public static boolean enableFabricInLogBox = false;
9598
}

0 commit comments

Comments
 (0)