Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

AppDelegate.m for both FBSDK and LinkingManager

$
0
0

To use FBSDK I need this snippet in app delegate

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url     sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {  BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application    openURL:url    sourceApplication:sourceApplication    annotation:annotation  ];  // Add any custom logic here.  return handled;}

To use LinkingManager I need this snippet in app delegate

#import "RCTLinkingManager.h"- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{  return [RCTLinkingManager application:application openURL:url                      sourceApplication:sourceApplication annotation:annotation];}

They're obviously duplicates. How do I combine the two so both libraries work?I don't know any Objective-C


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>