Skip to content

Commit 4e0f4e3

Browse files
author
Ari
committed
Merge branch 'master' of github.com:fullstackreact/react-native-oauth
* 'master' of github.com:fullstackreact/react-native-oauth: Fix build issue Dispatch safariViewController on main queue
2 parents 0054354 + ae28d03 commit 4e0f4e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/OAuthManager/OAuthManager.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ + (BOOL)setupOAuthHandler:(UIApplication *)application
9191
dispatch_async(dispatch_get_main_queue(), ^{
9292
safariViewController = [[SFSafariViewController alloc] initWithURL:URL];
9393
UIViewController *viewController = application.keyWindow.rootViewController;
94-
[viewController presentViewController:safariViewController animated:YES completion: nil];
94+
dispatch_async(dispatch_get_main_queue(), ^{
95+
[viewController presentViewController:safariViewController animated:YES completion: nil];
96+
});
9597
});
9698
} else {
9799
[application openURL:URL];

0 commit comments

Comments
 (0)