File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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];
You can’t perform that action at this time.
0 commit comments