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
172
172
safariVC.preferredControlTintColor = [RCTConvert UIColor: preferredControlTintColor];
173
173
}
174
174
}
175
- // To disable "Swipe to dismiss" gesture which sometimes causes a bug where `safariViewControllerDidFinish`
176
- // is not called.
177
- safariVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
178
175
179
176
UIViewController *ctrl = RCTPresentedViewController ();
180
177
if (modalEnabled) {
181
178
// This is a hack to present the SafariViewController modally
182
179
UINavigationController *safariHackVC = [[UINavigationController alloc ] initWithRootViewController: safariVC];
183
180
[safariHackVC setNavigationBarHidden: true animated: false ];
184
181
182
+ // To disable "Swipe to dismiss" gesture which sometimes causes a bug where `safariViewControllerDidFinish`
183
+ // is not called.
184
+ safariVC.modalPresentationStyle = UIModalPresentationOverFullScreen;
185
185
safariHackVC.modalPresentationStyle = [self getPresentationStyle: modalPresentationStyle];
186
186
if (animated) {
187
187
safariHackVC.modalTransitionStyle = [self getTransitionStyle: modalTransitionStyle];
You can’t perform that action at this time.
0 commit comments