From 901f97be7cfba1908f9bbd159cc545157b3f91aa Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 10 Feb 2016 17:00:59 +0000 Subject: [PATCH] update website --- docs/linking.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/linking.html b/docs/linking.html index a77d11d148d..54f66648f4d 100644 --- a/docs/linking.html +++ b/docs/linking.html @@ -8,10 +8,12 @@ access and handle it from any component you want with

}).catch(err => console.error('An error occurred', err)); }

NOTE: For instructions on how to add support for deep linking on Android, refer Enabling Deep Links for App Content - Add Intent Filters for Your Deep Links.

NOTE: For iOS, in case you also want to listen to incoming app links during your app's -execution you'll need to add the following lines to you *AppDelegate.m:

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url +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]; } @@ -19,7 +21,7 @@ execution you'll need to add the following lines to you *AppDelegate. - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler { - return [LinkingManager application:application + return [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; }

And then on your React component you'll be able to listen to the events on