-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.js
46 lines (35 loc) · 1.41 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* import firebase from 'firebase'
// Import the functions you need from the SDKs you need
//import { initializeApp } from "firebase/app";
// 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
const firebaseConfig = {
apiKey: "AIzaSyDWHqGNUamMvYzQ1IH6khsCFCNofzgMXSM",
authDomain: "rn-instagram-clone-4f22d.firebaseapp.com",
projectId: "rn-instagram-clone-4f22d",
storageBucket: "rn-instagram-clone-4f22d.appspot.com",
messagingSenderId: "946952474077",
appId: "1:946952474077:web:bb59b219b6f6cac147fa34"
};
// Initialize Firebase
!firebaseConfig.apps.length ? firebase.initializeApp(firebaseConfig) : firebase.app()
export default firebase */
import firebase from 'firebase/compat/app';
import 'firebase/compat/firestore';
import 'firebase/compat/auth';
import 'firebase/compat/database';
// Your web app's Firebase configuration
const config = {
//your config json file
apiKey: "AIzaSyDWHqGNUamMvYzQ1IH6khsCFCNofzgMXSM",
authDomain: "rn-instagram-clone-4f22d.firebaseapp.com",
projectId: "rn-instagram-clone-4f22d",
storageBucket: "rn-instagram-clone-4f22d.appspot.com",
messagingSenderId: "946952474077",
appId: "1:946952474077:web:bb59b219b6f6cac147fa34"
};
firebase.initializeApp(config);
export const db = firebase.firestore();
export const auth = firebase.auth();
export default firebase;