From fe337f25be65b67dc3d8d99d26a61ffd26985dd8 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 30 Jan 2024 03:35:11 -0800 Subject: [PATCH] Make bridgeless the default when the New Arch is enabled (#42714) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42714 For 0.74, we would like to have Bridgeless as the default when the New Architecture is enabled. ## Changelog: [Android][Breaking] - Make bridgeless the default when the New Arch is enabled Reviewed By: cortinico Differential Revision: D52600227 fbshipit-source-id: 0d967c73cd805710c501c020ad892f059a0fb117 --- .../react/defaults/DefaultNewArchitectureEntryPoint.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt index b837a299ad075a..2dcea68aec0f93 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt @@ -19,7 +19,8 @@ import com.facebook.react.config.ReactFeatureFlags * By default it loads a library called `appmodules`. `appmodules` is a convention used to refer to * the application dynamic library. If changed here should be updated also inside the template. * - * By default it also enables both TurboModules, Fabric and Concurrent React (aka React 18) + * By default it also enables both TurboModules, Fabric and Concurrent React (aka React 18), and + * Bridgeless */ object DefaultNewArchitectureEntryPoint { @JvmStatic @@ -27,7 +28,7 @@ object DefaultNewArchitectureEntryPoint { fun load( turboModulesEnabled: Boolean = true, fabricEnabled: Boolean = true, - bridgelessEnabled: Boolean = false + bridgelessEnabled: Boolean = true ) { val (isValid, errorMessage) = isConfigurationValid(turboModulesEnabled, fabricEnabled, bridgelessEnabled)