react-native-apple-login-ql

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-apple-login-ql

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.09 kB

Total Files

3

Last publish

Collaborators

  • ankitjain.aj1996