This is a quick and easy template repository you can use to get up and running with expo managed workflows connected to firestore and firebase!
This template repository was based off of this guide of setting up email authentication with firebase, modified to support google authentication with the google sign-in sdk!
- First, set up your app on the Firebase Console.
- Set Up your app on the Googl Cloud Console.
- Link Firebase to Your Web Application, Enable Google Sign In
- Set Up Your Google OAuth Clients on The Google Cloud Console
- Attach Your Google OAuth Clients To The Firebase App
- Replace ApiKeys with your info as appropriate within
./config/apiKeys.js
cd quickstarter
andnpm install
expo start
and start making your app!
- Since this is just a guide app, it only contains a login screen, a home page, and two other pages connected via a stack navigator.
- With Hooked React Components, the user's profile is stored within
AuthContext
. - When new users sign in for the first time, the firestore database gets updated and stores their display name, their gmail photo, and the resulting UID!
Every complex app idea has to start somewhere, and this takes away a lot of the brunt work of having to set-up the barebones of an app yourself!