Skip to content

Commit 2f9e131

Browse files
authored
Merge pull request proyecto26#134 from frankyjuang/master
Disable swipe to dismiss gesture for modal
2 parents 08d6a6d + 54f506d commit 2f9e131

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios/RNInAppBrowser.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ + (BOOL)requiresMainQueueSetup
179179
UINavigationController *safariHackVC = [[UINavigationController alloc] initWithRootViewController:safariVC];
180180
[safariHackVC setNavigationBarHidden:true animated:false];
181181

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

0 commit comments

Comments
 (0)