1.0.2 • Published 1 year ago

react-native-apple-login-ql v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

REACT-NATIVE-APPLE-LOGIN-QL

Dependencies needed

Use this command to install the npm packages listed below

  • @invertase/react-native-apple-authentication
  • @react-native-firebase/app
  • @react-native-firebase/auth

Steps for React Native Apple login in IOS

  1. Create firebase app for IOS
  2. Add following lines in Podfile located inside ios folder
    1. $RNFirebaseAsStaticFramewor = true at top of the file
    2. use_frameworks! :linkage => :static at top of the file
  3. Add following lines in AppDelegate.mm file located inside ios/project_name folder
    1. #import <Firebase.h> at top of the file
    2. FIRApp configure; at top of the didFinishLaunchingWithOptions function
  4. After completing above steps do pod install inside ios folder
  5. Add GoogleService-Info.plist inside ./ios/project_name using xcode by right clicking on project name folder then add file.
  6. Run app using 'npm run android for Android and 'npm run ios for IOS.

Usage

Install Dependeny

npm i react-native-apple-login-ql yarn add react-native-apple-login-ql

Import the package

import AppleSignIn from 'react-native-apple-login-ql';

Then call the component

<AppleSignIn
    title="Apple Sign In"
    btnColor="#fff"
    titleColor="#000"
    fontSize={16}
    rippleColor="#dcdcdc"
/>

To customize the button component

<AppleSignIn
    title="Apple Sign In"
    btnColor="#fff"
    titleColor="#000"
    fontSize={16}
    rippleColor="#dcdcdc"
    btnComponent={
      <View style={styles.btnContainer}>
        <Text style={{fontSize: 16, color: "#000"}}>Apple Sign In</Text>
      </View>
    }
  />

For more information look into github

https://ankitj1996@bitbucket.org/sunychoudhary/auth-apple-rn.git