-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
25 lines (22 loc) · 923 Bytes
/
firebaseConfig.js
File metadata and controls
25 lines (22 loc) · 923 Bytes
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
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { initializeAuth, getReactNativePersistence } from "firebase/auth";
import { ReactNativeAsyncStorage } from '@react-native-async-storage/async-storage';
import { getStorage } from "firebase/storage";
const firebaseConfig = {
apiKey: "AIzaSyDkqrT3nByTUhGITQQscLKhMpYstS8U2cw",
authDomain: "blueprint-scmac.firebaseapp.com",
projectId: "blueprint-scmac",
storageBucket: "blueprint-scmac.appspot.com",
messagingSenderId: "1038327778671",
appId: "1:1038327778671:web:1d326ad8e79f18be11ac9a",
measurementId: "G-WX6CMZNQB3"
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage)
});
const storage = getStorage(app);
module.exports = { db, auth, storage };
export { db, auth, storage };