forked from sameerkavthekar/EatRight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.js
28 lines (26 loc) · 1.03 KB
/
firebase.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Import the functions you need from the SDKs you need
import { getAuth } from "@firebase/auth";
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
// import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
import { FIREBASE_API_KEY } from "@env";
console.log(FIREBASE_API_KEY);
const firebaseConfig = {
apiKey: FIREBASE_API_KEY,
authDomain: "food-logger-930af.firebaseapp.com",
projectId: "food-logger-930af",
storageBucket: "food-logger-930af.appspot.com",
messagingSenderId: "229459970895",
appId: "1:229459970895:web:72e24b78efac7f5b6ad33a",
measurementId: "G-45JBVSQRPX",
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// const analytics = getAnalytics(app);
const auth = getAuth();
const db = getFirestore();
export { auth, db };