diff --git a/React/CoreModules/RCTAlertController.m b/React/CoreModules/RCTAlertController.m index 7b326a2ad31ee8..2465e62cc2a97e 100644 --- a/React/CoreModules/RCTAlertController.m +++ b/React/CoreModules/RCTAlertController.m @@ -35,6 +35,12 @@ - (void)show:(BOOL)animated completion:(void (^)(void))completion - (void)hide { + [_alertWindow setHidden: YES]; + + if (@available(iOS 13, *)) { + _alertWindow.windowScene = nil; + } + _alertWindow = nil; }