diff --git a/React/Views/RCTModalHostView.m b/React/Views/RCTModalHostView.m index f82726bd36023a..a7bd40099b047c 100644 --- a/React/Views/RCTModalHostView.m +++ b/React/Views/RCTModalHostView.m @@ -37,7 +37,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _bridge = bridge; _modalViewController = [RCTModalHostViewController new]; UIView *containerView = [UIView new]; - containerView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; + containerView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; _modalViewController.view = containerView; _touchHandler = [[RCTTouchHandler alloc] initWithBridge:bridge]; _isPresented = NO; @@ -148,7 +148,7 @@ - (void)invalidate - (BOOL)isTransparent { - return _modalViewController.modalPresentationStyle == UIModalPresentationCustom; + return _modalViewController.modalPresentationStyle == UIModalPresentationOverFullScreen; } - (BOOL)hasAnimationType @@ -158,7 +158,7 @@ - (BOOL)hasAnimationType - (void)setTransparent:(BOOL)transparent { - _modalViewController.modalPresentationStyle = transparent ? UIModalPresentationCustom : UIModalPresentationFullScreen; + _modalViewController.modalPresentationStyle = transparent ? UIModalPresentationOverFullScreen : UIModalPresentationFullScreen; } - (UIInterfaceOrientationMask)supportedOrientationsMask