Skip to content

Commit

Permalink
example app ios deeplink fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chathurapathiranage committed Aug 1, 2024
1 parent e5f3a62 commit 575851a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion example/ios/example/AppDelegate.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTLinkingManager.h> // Add this import

@implementation AppDelegate

Expand Down Expand Up @@ -28,4 +29,12 @@ - (NSURL *)bundleURL
#endif
}

@end
// Add this method to handle opening URLs
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}

@end

0 comments on commit 575851a

Please sign in to comment.