-
On the Firebase console, add a new web application and enter your projects details.
-
Got to Firebase Projects settings and select your web app.
-
From the Firebase SDK snippet, select
Config
options. -
Copy the Firebase config and add it to following location
/src/api/firebase/config/index.js
const firebaseConfig = {
apiKey: "xxx",
authDomain: "xxx",
databaseURL: "xxx",
projectId: "xxx",
storageBucket: "xxx",
messagingSenderId: "xxx",
appId: "xxx",
measurementId: "xxx"
};
export default firebaseConfig;
- Install Expo CLI
- Start expo using this command
NODE_OPTIONS=--max-old-space-size=4096 expo start --ios
-
On the Firebase console, add a new iOS application and enter your projects details.
-
Download the
GoogleService-Info.plist
file and place it inside of your project at the following location:/src/api/firebase/config/GoogleService-Info.plist
.
- On the Firebase console, add a new Android application and enter your projects details.
To generate Debug signing certificate SHA-1 (optional) use the command below or follow the following instruction. This step is not required unless you want to distribute your app using Firebase App Distribution.
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
On the Firebase console, add a new Android application and enter your projects details.
- Download the
google-services.json
file and place it inside of your project at the following location:/src/api/firebase/config/google-services.json
.
- Install dependencies
yarn install
- Start app in a specific platform, platform could be
web
,ios
orandroid
yarn <platform>