-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
Should we just do this?
const React = require("react-native");
const firebase = require("firebase");
// Initialize Firebase
const firebaseConfig = {
apiKey: "<YOUR-API-KEY>",
authDomain: "<YOUR-AUTH-DOMAIN>",
databaseURL: "<YOUR-DATABASE-URL>",
storageBucket: "",
};
firebase.initializeApp(firebaseConfig);
// Create a reference with .ref() instead of new Firebase(url)
const rootRef = firebase.database().ref();
export default rootRef; // <<<<assume we can just make this a module and initialize the db this way, but I am pretty new to Firebase
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels