-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
25 lines (20 loc) · 869 Bytes
/
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
// Import the functions you need from the SDKs you need
import firebase from "firebase/compat/app"
import "firebase/compat/auth"
import 'firebase/compat/firestore'
// 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: "AIzaSyCa9Xv1bxWA4oSNQrInosc5-OlFsOGuGKU",
authDomain: "instagram-clone-rn-575d6.firebaseapp.com",
projectId: "instagram-clone-rn-575d6",
storageBucket: "instagram-clone-rn-575d6.appspot.com",
messagingSenderId: "565205886001",
appId: "1:565205886001:web:77a36accb502f31d4ce110"
};
// Initialize Firebase
// const app = initializeApp(firebaseConfig);
!firebase.apps.length? firebase.initializeApp(firebaseConfig): firebase.app()
// const db = firebase.firestore()
export default firebase