- @react-native-google-signin/google-signin
- @react-native-firebase/app
- @react-native-firebase/auth
- 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
- 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.
import RNGoogleSignIn from 'rn-google-login-firebase-ql';
<RNGoogleSignIn
title="Google Sign In"
btnColor="#fff"
titleColor="#000"
fontSize={16}
rippleColor="#dcdcdc"
/>
<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>
}
/>
https://ankitj1996@bitbucket.org/sunychoudhary/auth-google-rn.git