diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h index 741dfa92f7fc..fd7310c7f884 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h @@ -148,17 +148,22 @@ NS_ASSUME_NONNULL_BEGIN /// /// @note: This is required to be rendering on Fabric (i.e. on the New Architecture). /// @return: `true` if the Turbo Native Module are enabled. Otherwise, it returns `false`. -- (BOOL)turboModuleEnabled; +- (BOOL)turboModuleEnabled __attribute__((deprecated("Use newArchEnabled instead"))); /// This method controls whether the App will use the Fabric renderer of the New Architecture or not. /// /// @return: `true` if the Fabric Renderer is enabled. Otherwise, it returns `false`. -- (BOOL)fabricEnabled; +- (BOOL)fabricEnabled __attribute__((deprecated("Use newArchEnabled instead"))); /// This method controls whether React Native's new initialization layer is enabled. /// /// @return: `true` if the new initialization layer is enabled. Otherwise returns `false`. -- (BOOL)bridgelessEnabled; +- (BOOL)bridgelessEnabled __attribute__((deprecated("Use newArchEnabled instead"))); + +/// This method controls whether React Native uses new Architecture. +/// +/// @return: `true` if the new architecture is enabled. Otherwise returns `false`. +- (BOOL)newArchEnabled; /// Return the bundle URL for the main bundle. - (NSURL *__nullable)bundleURL;