diff --git a/Libraries/AppDelegate/RCTAppDelegate.h b/Libraries/AppDelegate/RCTAppDelegate.h index b8d00bab93e7cd..e4e987ad6f0085 100644 --- a/Libraries/AppDelegate/RCTAppDelegate.h +++ b/Libraries/AppDelegate/RCTAppDelegate.h @@ -9,13 +9,8 @@ #import #import -#if RCT_NEW_ARCH_ENABLED -// When the new architecture is enabled, the RCTAppDelegate imports some additional headers -#import -#import -#import - -#endif +@class RCTSurfacePresenterBridgeAdapter; +@class RCTTurboModuleManager; /** * The RCTAppDelegate is an utility class that implements some base configurations for all the React Native apps. @@ -98,11 +93,7 @@ */ - (UIViewController *)createRootViewController; -@end - #if RCT_NEW_ARCH_ENABLED -/// Extension that makes the RCTAppDelegate conform to New Architecture delegates -@interface RCTAppDelegate () /// The TurboModule manager @property (nonatomic, strong) RCTTurboModuleManager *turboModuleManager; @@ -126,5 +117,6 @@ /// @return: `true` if the Fabric Renderer is enabled. Otherwise, it returns `false`. - (BOOL)fabricEnabled; -@end #endif + +@end diff --git a/Libraries/AppDelegate/RCTAppDelegate.mm b/Libraries/AppDelegate/RCTAppDelegate.mm index 39b29792245fa3..c498409d051514 100644 --- a/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/Libraries/AppDelegate/RCTAppDelegate.mm @@ -11,13 +11,16 @@ #if RCT_NEW_ARCH_ENABLED #import +#import #import #import +#import +#import #import static NSString *const kRNConcurrentRoot = @"concurrentRoot"; -@interface RCTAppDelegate () { +@interface RCTAppDelegate () { std::shared_ptr _reactNativeConfig; facebook::react::ContextContainer::Shared _contextContainer; }