Skip to content

Starter react-native app with google signin integration

Notifications You must be signed in to change notification settings

rahool/react-native-starter

Repository files navigation

Starter react-native app with google signin integration

This starter app allows access to inner app screens only after successful google signin.

Screenshot1.png Screenshot2.png Screenshot3.png Screenshot4.png Screenshot5.png

Setup

npm install
react-native link

Create a Firebase project or use an existing project Firebase console

Go to project settings in Firebase.

Go to Add App section. Here you need to enter your app's 'Package name' and SHA-1 fingerprint

For android: to get SHA-1 fingerprint follow this

You can also use your debug keystore's SHA-1 hash

keytool -exportcert -keystore ~/.android/debug.keystore -list -v

This will print SHA1 fingerprint, paste it into firebase android app settings

Download google-services.json file from Firebase and put it in <YOUR_PROJECT_ROOT>/android/app

react-native run-android