Skip to content

affan880/expo-firebase-phonenumber-auth-starter

 
 

Repository files navigation

expo-firebase-phonenumber-auth-starter 🔥

Supports Expo iOS Supports Expo Android

Is a quicker way to start with Expo + Firebase projects. It includes:

  • based on Expo SDK 38.x.x
  • navigation using react-navigation 5.x.x
  • Firebase as backend for phone auth
  • Resend OTP with time interval
  • custom and reusable form components
  • handles different field types in forms
  • handles server errors using Formik
  • Login/Code form built using Formik & yup
  • uses Context API & checks user's auth state
  • all components are now functional components and use React Hooks

Installation

  • Clone this repo
  • to install dependencies: npm install or yarn install
  • rename the file example.firebaseConfig.js to firebaseConfig.js
  • and make sure to add your own Firebase config in this file as shown below.
// Rename this file to "firebaeConfig.js" before use
// Replace all Xs with real Firebase API keys

export default {
  apiKey: 'XXXX',
  authDomain: 'XXXX',
  databaseURL: 'XXXX',
  projectId: 'XXXX',
  storageBucket: 'XXXX',
  messagingSenderId: 'XXXX',
  appId: 'XXXX'
};

Screens

Main screens:

  • Welcome
  • Login
  • Home

thanx to expo-firebase-starter ( help me a lot )

About

expo firebase phone number authentication starter kit

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%