rn-google-login-firebase-ql
v1.0.4
Published
## Dependencies needed
Downloads
4
Maintainers
Readme
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
- Create firebase app for android
- Add SHA1 and SHA2 key in firebase console by running keytool -keystore ~/QL/auth/android/app/debug.keystore -list -v
- Add google-services.json file inside andriod/app
Steps for React Native google login in IOS
- Create firebase app for ios
- Add following lines in Podfile located inside ios folder
- $RNFirebaseAsStaticFramewor = true at top of the file
- use_frameworks! :linkage => :static at top of the file
- After installing above dependencies do pod install inside ios folder
- 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://[email protected]/sunychoudhary/auth-google-rn.git