-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigInit.js
More file actions
30 lines (25 loc) · 932 Bytes
/
Copy pathconfigInit.js
File metadata and controls
30 lines (25 loc) · 932 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
26
27
28
29
30
import { getApps, initializeApp, FirebaseApp } from 'firebase/app';
import * as Facebook from 'expo-facebook';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
import { getDatabase } from 'firebase/database';
if(getApps().length === 0){
initializeApp({
"apiKey": "AIzaSyBQH0riI5e09XX-pEcjvhCMAQEz2gvhDMY",
"authDomain": "cstc-2a071.firebaseapp.com",
"projectId": "cstc-2a071",
"storageBucket": "cstc-2a071.appspot.com",
"messagingSenderId": "669579499696",
"appId": "1:669579499696:web:dab2291f0cc2886d0b8375",
"measurementId": "G-LYQL9V1W9K",
"databaseURL": "https://cstc-2a071-default-rtdb.europe-west1.firebasedatabase.app"
});
Facebook.initializeAsync({
appId: '635693490984759',
});
}
const auth = getAuth();
const firestore = getFirestore();
const db = getFirestore();
const rtdb = getDatabase();
export { auth, firestore, db, rtdb };