Created
March 27, 2020 20:17
-
-
Save RazaShehryar/c06eb084322e1d6a7b3572be4fae69f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Firebase from "../Config/Firebase"; | |
Firebase.firestore() | |
.collection("Requests") | |
.doc() | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "firebase/app"; | |
import "firebase/firestore"; | |
var firebaseConfig = { | |
apiKey: "XXX", | |
authDomain: "XXX", | |
databaseURL: "XXX", | |
projectId: "XXX", | |
storageBucket: "XXX", | |
messagingSenderId: "XXX", | |
appId: "XXX", | |
measurementId: "XXX" | |
}; | |
const Firebase = firebase.initializeApp(firebaseConfig); | |
export default !firebase.apps.length ? Firebase : firebase.app(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RazaShehryar
I think you don't need the
/app
prefix, onlyimport firebase from 'firebase'