react-native-social-login-component v0.0.1
AuthLogin
This project aims at providing all social logins( like FaceBook, Google, Firebase and Apple) under single package.
Login With FaceBook
Setup FaceBook Developers Account
Step 1: Start the registration process
While logged into your Facebook account, go to https://developers.facebook.com/async/registration.
Alternatively, you can go to the Meta for Developers website and click Get Started.
Step 2: Agree to our Terms and Policies
Click Next to agree to our Platform Terms and Developer Policies.
Step 3: Verify your account
A confirmation code will be sent to the phone number and email address that was provided in order to confirm that the user have access to them. The number and email will be used for important developer notifications of any changes that may impact to the app.
Step 4: Select occupation
Select an occupation that most closely describes what you do for a living.
Now use the app Dashborad to create new app.
Installation
1. Install the library
using either Yarn:
yarn add react-native-social-login
or npm:
npm install --save react-native-social-login
2. Link
- React Native 0.60+
CLI autolink feature links the module while building the app.
Note For iOS
using cocoapods
, run:
$ cd ios/ && pod install
3. Configure projects
3.1 Android
Before you can run the project, follow the Getting Started Guide for Facebook Android SDK to set up a Facebook app. You can skip the build.gradle changes since that's taken care of by the rnpm link step above, but make sure you follow the rest of the steps such as updating strings.xml
and AndroidManifest.xml
.
3.2 iOS
Follow steps 2, 3 and 4 in the Getting Started Guide for Facebook SDK for iOS.
2 years ago