Example React Native App With Firebase as the backend

I strongly recommend replacing the current Firebase integration with https://rnfirebase.io/ as it covers issues with draining the users battery. In this example we are using the Web App firebase configuration, this is made possible using Expo.

Setting up Firebase

  • Create a project in Firebase
  • Enable email authentication
  • Enable Firestore Database
  • Create a new web app and get the Firebase configuration (Credentials)
  • Update the credentials accordingly in the .env file

Installation

Install EXPO CLI

# Install the command line tools
$ npm install --global expo-cli

Install dependencies

$ expo install

Run expo

$ expo start

Screenshots

Signing in

alt text

Signing up

alt text

The session is persisted, if the app is close you will still be logged in

alt text