Skip to content

Commit bfa2ddb

Browse files
authored
Combines support for react navigation deep linking in ios 10 and below. resolves issue #616. (#620)
1 parent e75f6c8 commit bfa2ddb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,14 @@ Make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager` with the follo
330330
+ @property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
331331
```
332332
333-
Add the following code to `AppDelegate.m` (to support iOS 10 and below)
333+
Add the following code to `AppDelegate.m` (to support iOS <= 10 and React Navigation deep linking)
334334
335335
```diff
336336
+ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
337-
+ return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
337+
+ if ([self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url]) {
338+
+ return YES;
339+
+ }
340+
+ return [RCTLinkingManager application:app openURL:url options:options];
338341
+ }
339342
```
340343

0 commit comments

Comments
 (0)