React Native - Facebook Login
1. Install the library
yarn add react-native-fbsdk2. Link
$ cd ios/ && pod install3. Configure projects
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
return YES;
}
if ([RCTLinkingManager application:app openURL:url options:options]) {
return YES;
}
return NO;
}配置 info.plist 和專案設定
配置 AppDelegate.m 檔案中的 Facebook SDK:
PreviousTypeORM - How to seed data with typeorm-seeding 🔥NextReact Native - Adding a new Swift file and a Bridge header
Last updated