diff --git a/React/Views/RCTModalHostViewController.m b/React/Views/RCTModalHostViewController.m index 16cd7c2cba8050..c76ad788b50d7d 100644 --- a/React/Views/RCTModalHostViewController.m +++ b/React/Views/RCTModalHostViewController.m @@ -25,6 +25,13 @@ - (instancetype)init return nil; } +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_13_0) && \ +__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0 + if (@available(iOS 13.0, *)) { + self.modalInPresentation = YES; + } +#endif + #if !TARGET_OS_TV _preferredStatusBarStyle = [RCTSharedApplication() statusBarStyle]; _preferredStatusBarHidden = [RCTSharedApplication() isStatusBarHidden];