diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm index 28e339d0e00c51..46b800cce9d56c 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -76,6 +76,7 @@ - (void)loadReactNativeWindow:(NSDictionary *)launchOptions self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [self createRootViewController]; [self setRootView:rootView toRootViewController:rootViewController]; + _window.windowScene.delegate = self; _window.rootViewController = rootViewController; [_window makeKeyAndVisible]; }