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
- Clone this repo
- to install dependencies:
npm install
oryarn install
- rename the file
example.firebaseConfig.js
tofirebaseConfig.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'
};
Main screens:
- Welcome
- Login
- Home
thanx to expo-firebase-starter ( help me a lot )