Skip to content

Commit 1978805

Browse files
Callmenormfacebook-github-bot-7
authored andcommitted
Updating the native code to make it match reality.
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
1 parent e7005f7 commit 1978805

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Libraries/Linking/Linking.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,20 @@ const DEVICE_NOTIF_EVENT = 'openURL';
5353
* execution you'll need to add the following lines to you `*AppDelegate.m`:
5454
*
5555
* ```
56+
*#import "RCTLinkingManager.h"
57+
*
5658
* - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
5759
* sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
5860
* {
59-
* return [LinkingManager application:application openURL:url
61+
* return [RCTLinkingManager application:application openURL:url
6062
* sourceApplication:sourceApplication annotation:annotation];
6163
* }
6264
*
6365
* // Only if your app is using [Universal Links](https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html).
6466
* - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
6567
* restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
6668
* {
67-
* return [LinkingManager application:application
69+
* return [RCTLinkingManager application:application
6870
* continueUserActivity:userActivity
6971
* restorationHandler:restorationHandler];
7072
* }

0 commit comments

Comments
 (0)