Skip to content
Snippets Groups Projects
Commit 0c31cff1 authored by Anna-Lena Müller's avatar Anna-Lena Müller
Browse files

Delete Firebase.js

parent 9eac02ff
No related branches found
No related tags found
No related merge requests found
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
import { getFirestore, collection, getDocs } from 'firebase/firestore';
//import * as firebase from 'firebase';
//import 'firebase/firestore'
/*const firebaseConfig = {
apiKey: "AIzaSyCNhZTcHSLaIGjP-fzpPrqRTAiWZB9jLos",
authDomain: "exercise-react-native-433ff.firebaseapp.com",
projectId: "exercise-react-native-433ff",
storageBucket: "exercise-react-native-433ff.appspot.com",
messagingSenderId: "293211634805",
appId: "1:293211634805:web:e02756294908e9734ecc3c",
measurementId: "G-R25TM36Y33"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
//const analytics = getAnalytics(app);
//const db = getFirestore(app);
// Get a list of cities from your database
/*async function getCities(db) {
const citiesCol = collection(db, 'cities');
const citySnapshot = await getDocs(citiesCol);
const cityList = citySnapshot.docs.map(doc => doc.data());
return cityList;
}*/
const firebaseConfig = {
apiKey: "AIzaSyCNhZTcHSLaIGjP-fzpPrqRTAiWZB9jLos",
authDomain: "exercise-react-native-433ff.firebaseapp.com",
projectId: "exercise-react-native-433ff",
storageBucket: "exercise-react-native-433ff.appspot.com",
messagingSenderId: "293211634805",
appId: "1:293211634805:web:99405940c89de56e4ecc3c",
measurementId: "G-JJPHT7LEPD"
};
const app = initializeApp(firebaseConfig);
//const analytics = getAnalytics(app);
export default getFirestore();
/*const app = firebase.initializeApp(firebaseConfig);
export const fireDB = app.firestore();
export default app;*/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment