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 82f91e7e034036..fcc796e4e981e2 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 @@ -108,7 +108,11 @@ public void onCreate(Bundle savedInstanceState) { } else { mReactDelegate = new ReactDelegate( - getPlainActivity(), getReactNativeHost(), mainComponentName, launchOptions) { + getPlainActivity(), + getReactNativeHost(), + mainComponentName, + launchOptions, + isFabricEnabled()) { @Override protected ReactRootView createRootView() { ReactRootView rootView = ReactActivityDelegate.this.createRootView(); 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 1047542202632a..4cbc4107b05d48 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 @@ -44,6 +44,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,