diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h index fd7310c7f884ab..f9ca86a602aea7 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h @@ -64,6 +64,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong, nullable) NSDictionary *initialProps; @property (nonatomic, strong, nonnull) RCTRootViewFactory *rootViewFactory; +/// If `automaticallyLoadReactNativeWindow` is set to `true`, the React Native window will be loaded automatically. +@property (nonatomic, assign) BOOL automaticallyLoadReactNativeWindow; + @property (nonatomic, nullable) RCTSurfacePresenterBridgeAdapter *bridgeAdapter; /** diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm index 1e87756cad8c80..ca5be139ffb2de 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -12,6 +12,7 @@ #import #import #import +#include #import #import #import @@ -38,6 +39,14 @@ @interface RCTAppDelegate ()