Simplified Firebase authentication for React Native projects with Registration, login, read and write.
- Registration with email & password
- Login with emil and Password
- Handling persisted login credentials
- Navigation (react-native-navigation)
- Writing to Firestore Database
- Reading from Firestore Database
- Creating Firestore indices (for performance)
- Clone this repo
git clone https://github.com/jaihan/react-native-firebase.git
- Install dependenices
yarn install
- Go to src/firebase/config.js and replace FIREBASE_CONFIG with your own firebase config.
const firebaseConfig = {
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
authDomain: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
databaseURL: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
projectId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
storageBucket: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
messagingSenderId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
measurementId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
};
- Run the project using expo
expo start