Integrate Facebook login with React native

https://www.npmjs.com/package/react-native-facebook-login#example-project
This is the package you need to install

For Ios, follow the following steps
1-npm install –save react-native-facebook-login

2-open your project in xcode
then follow the following steps
-Click on the main project, Go to general. Scroll down to Libraries. Click on “+”. Add this in libraries “node_modules/react-native-facebook-login”.
– Now go to “Build Phases” expand the Link Binary With Libraries header
-Scroll down and click the + to add a library
-Find and add libRCTFBLogin.a under the Workspace group

3- Add the following code snippet in your info.plist
LSApplicationQueriesSchemes

fbapi
fb-messenger-api
fbauth2
fbshareextension

-Add the following code after this
CFBundleSignature
????

CFBundleURLTypes


CFBundleURLSchemes

fb{fb_app_id}



CFBundleVersion // this will be already there
1 // this will be already there
FacebookAppID
{fb_app_id}
FacebookDisplayName
{App_name}

-Add this snippet in under NSExceptionDomains

facebook.com

NSIncludesSubdomains
NSThirdPartyExceptionRequiresForwardSecrecy


fbcdn.net

4-Click on the main project, Go to general. Scroll down to Linked Frameworks and Libraries. Click on “+”.
-Go to “node_modules/react-native-facebook-login/FacebookSDK”
-Select all the .framework files in the FacebookSDK folder and add them.

5- Now go to “Build Settings”, scroll down to “Search Paths”
-Add the following path to your “Framework Search Paths” for both (Debug and Release)
$(SRCROOT)/../node_modules/react-native-facebook-login/FacebookSDK

6-Now open AppDelegate.m
-Modify it accordingly
#import
#import

.Modify the application didFinishLaunchingWithOptions method to return FBSDKApplicationDelegate instead of YES
– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// …
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [[UIViewController alloc] init];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
// return YES;
return [[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
}

.Add the following new methods after the application didFinishLaunchingWithOptions method above, before the @end.
// Facebook SDK
– (void)applicationDidBecomeActive:(UIApplication *)application {
[FBSDKAppEvents activateApp];
}

– (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation];
}

For Ios, follow the following Link

https://github.com/magus/react-native-facebook-login/blob/HEAD/android/README.md