Skip to content

Commit ce0f8be

Browse files
committed
Fix
1 parent f76b643 commit ce0f8be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RNInAppBrowser.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,16 @@ + (BOOL)requiresMainQueueSetup
172172
safariVC.preferredControlTintColor = [RCTConvert UIColor:preferredControlTintColor];
173173
}
174174
}
175-
// To disable "Swipe to dismiss" gesture which sometimes causes a bug where `safariViewControllerDidFinish`
176-
// is not called.
177-
safariVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
178175

179176
UIViewController *ctrl = RCTPresentedViewController();
180177
if (modalEnabled) {
181178
// This is a hack to present the SafariViewController modally
182179
UINavigationController *safariHackVC = [[UINavigationController alloc] initWithRootViewController:safariVC];
183180
[safariHackVC setNavigationBarHidden:true animated:false];
184181

182+
// To disable "Swipe to dismiss" gesture which sometimes causes a bug where `safariViewControllerDidFinish`
183+
// is not called.
184+
safariVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
185185
safariHackVC.modalPresentationStyle = [self getPresentationStyle: modalPresentationStyle];
186186
if(animated) {
187187
safariHackVC.modalTransitionStyle = [self getTransitionStyle: modalTransitionStyle];

0 commit comments

Comments
 (0)