Skip to content

Commit

Permalink
Updating the native code to make it match reality.
Browse files Browse the repository at this point in the history
Summary:
In the native code, you must use RCTLinkingManager instead of LinkingManager and you have to import it as well.
Closes facebook#5830

Reviewed By: svcscm

Differential Revision: D2921718

Pulled By: androidtrunkagent

fb-gh-sync-id: a95ec358c69e8830b7f0fb2ec60baefc06139758
shipit-source-id: a95ec358c69e8830b7f0fb2ec60baefc06139758
  • Loading branch information
Callmenorm authored and facebook-github-bot-7 committed Feb 10, 2016
1 parent e7005f7 commit 1978805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Libraries/Linking/Linking.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,20 @@ const DEVICE_NOTIF_EVENT = 'openURL';
* execution you'll need to add the following lines to you `*AppDelegate.m`:
*
* ```
*#import "RCTLinkingManager.h"
*
* - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
* sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
* {
* return [LinkingManager application:application openURL:url
* return [RCTLinkingManager application:application openURL:url
* sourceApplication:sourceApplication annotation:annotation];
* }
*
* // Only if your app is using [Universal Links](https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html).
* - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
* restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
* {
* return [LinkingManager application:application
* return [RCTLinkingManager application:application
* continueUserActivity:userActivity
* restorationHandler:restorationHandler];
* }
Expand Down

0 comments on commit 1978805

Please sign in to comment.