Of course, you can implement this method only once in your own AppDelegate.
[[FBSDKApplicationDelegate...and [RCTLinkingManager...both return a BOOL.
You can put both fragments in the same method. I propose to return YES, if both [RCTLinkingManager...and [[FBSDKApplicationDelegate...return YES. Otherwise, return NO.
:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
BOOL handledFB = [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation
];
BOOL handledRCT = [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
return handledFB || handledRCT;
}
, FBSDKApplicationDelegate RCTLinkingManager , . .