diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java index b9fc10da9d0705..98806deba22e67 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java @@ -923,17 +923,19 @@ private Task getOrCreateStartTask() { final String method = "getOrCreateStartTask()"; if (mStartTask == null) { log(method, "Schedule"); - Assertions.assertCondition( - ReactNativeFeatureFlags.enableBridgelessArchitecture(), - "enableBridgelessArchitecture FeatureFlag must be set to start ReactNative."); + if (ReactBuildConfig.DEBUG) { + Assertions.assertCondition( + ReactNativeFeatureFlags.enableBridgelessArchitecture(), + "enableBridgelessArchitecture FeatureFlag must be set to start ReactNative."); - Assertions.assertCondition( - ReactNativeFeatureFlags.enableFabricRenderer(), - "enableFabricRenderer FeatureFlag must be set to start ReactNative."); + Assertions.assertCondition( + ReactNativeFeatureFlags.enableFabricRenderer(), + "enableFabricRenderer FeatureFlag must be set to start ReactNative."); - Assertions.assertCondition( - ReactNativeFeatureFlags.useTurboModules(), - "useTurboModules FeatureFlag must be set to start ReactNative."); + Assertions.assertCondition( + ReactNativeFeatureFlags.useTurboModules(), + "useTurboModules FeatureFlag must be set to start ReactNative."); + } mStartTask = waitThenCallGetOrCreateReactInstanceTask() .continueWithTask(