Browse Source

Added ios linking code

Arnaud Vergnet 1 year ago
parent
commit
19d5663210
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      ios/Campus/AppDelegate.m

+ 10
- 0
ios/Campus/AppDelegate.m View File

@@ -14,10 +14,20 @@
14 14
 #import <UMReactNativeAdapter/UMNativeModulesProxy.h>
15 15
 #import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
16 16
 
17
+#import <React/RCTLinkingManager.h>
18
+
17 19
 @implementation AppDelegate
18 20
 
19 21
 @synthesize window = _window;
20 22
 
23
+- (BOOL)application:(UIApplication *)application
24
+   openURL:(NSURL *)url
25
+   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
26
+{
27
+  return [RCTLinkingManager application:application openURL:url options:options];
28
+}
29
+
30
+
21 31
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
22 32
 {
23 33
   self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];

Loading…
Cancel
Save