diff --git a/React/CoreModules/RCTAlertController.m b/React/CoreModules/RCTAlertController.m index 6287ebf8082dd5..02636c3f4a7b8f 100644 --- a/React/CoreModules/RCTAlertController.m +++ b/React/CoreModules/RCTAlertController.m @@ -29,6 +29,11 @@ - (UIWindow *)alertWindow - (void)show:(BOOL)animated completion:(void (^)(void))completion { + if (@available(iOS 13.0, *)) { + UIUserInterfaceStyle style = + RCTSharedApplication().delegate.window.overrideUserInterfaceStyle ?: UIUserInterfaceStyleUnspecified; + self.overrideUserInterfaceStyle = style; + } [self.alertWindow makeKeyAndVisible]; [self.alertWindow.rootViewController presentViewController:self animated:animated completion:completion]; }