rn-google-login-firebase-ql

1.0.4 • Public • Published

RN-GOOGLE-LOGIN-FIREBASE-QL

Dependencies needed

Use this command to install the npm packages listed below

  • @react-native-google-signin/google-signin
  • @react-native-firebase/app
  • @react-native-firebase/auth

Steps for React Native google login in Android

  1. Create firebase app for android
  2. Add SHA1 and SHA2 key in firebase console by running keytool -keystore ~/QL/auth/android/app/debug.keystore -list -v
  3. Add google-services.json file inside andriod/app

Steps for React Native google 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. After installing above dependencies do pod install inside ios folder
  4. Add GoogleService-Info.plist inside ./ios/project_name using xcode by right clicking on project name folder then add file.

Usage

Import the package

import RNGoogleSignIn from 'rn-google-login-firebase-ql';

Then call the component

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

To customize the button component

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

For more information look into github

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

Package Sidebar

Install

npm i rn-google-login-firebase-ql

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

4.44 kB

Total Files

3

Last publish

Collaborators

  • ankitjain.aj1996