From a337f6eda71424e2eaa765aabef2a932bfac221f Mon Sep 17 00:00:00 2001 From: Shivam Shashank <31573704+ricku44@users.noreply.github.com> Date: Tue, 31 Oct 2023 04:43:17 -0700 Subject: [PATCH] Making setFabricEnabled Flag optional for ReactFragments (#41211) Summary: Making setFabricEnabled Flag optional for ReactFragments ## Changelog: [ANDROID][CHANGED] - Continuation of PR: 36263 Pull Request resolved: https://github.com/facebook/react-native/pull/41211 Test Plan: Kotlin Code Snippet to test: ``` supportFragmentManager .beginTransaction() .add(android.R.id.content, ReactFragment.Builder() .setComponentName("componentName") .setFabricEnabled(true) .build()) .commit() ``` Reviewed By: cipolleschi Differential Revision: D50732345 Pulled By: cortinico fbshipit-source-id: 812fe1abeb8c09334bd755ce3a29f55ce8b7ac7b --- .../src/main/java/com/facebook/react/ReactFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java index f3fbe055bf052d..e25ac76bb996e9 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java @@ -181,7 +181,7 @@ public static class Builder { public Builder() { mComponentName = null; mLaunchOptions = null; - mFabricEnabled = null; + mFabricEnabled = false; } /**