diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java index 2f1a0c8c55d1f2..a64876ff900ffd 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java @@ -109,7 +109,11 @@ protected void onCreate(Bundle savedInstanceState) { } else { mReactDelegate = new ReactDelegate( - getPlainActivity(), getReactNativeHost(), mainComponentName, launchOptions) { + getPlainActivity(), + getReactNativeHost(), + mainComponentName, + launchOptions, + isFabricEnabled()) { @Override protected ReactRootView createRootView() { return ReactActivityDelegate.this.createRootView(launchOptions); diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java index a87a323a5c2abd..3afe3d96af23e8 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java @@ -45,6 +45,15 @@ public class ReactDelegate { private boolean mFabricEnabled = false; + /** + * Do not use this constructor as it's not accounting for New Architecture at all. You should + * either use {@link ReactDelegate#ReactDelegate(Activity, ReactHost, String, Bundle)} if you're + * on bridgeless mode or {@link ReactDelegate#ReactDelegate(Activity, ReactNativeHost, String, + * Bundle, boolean)} and use the last parameter to toggle paper/fabric. + * + * @deprecated Use one of the other constructors instead to account for New Architecture. + */ + @Deprecated public ReactDelegate( Activity activity, ReactNativeHost reactNativeHost,