How to use the @firebase/app.storage function in @firebase/app

To help you get started, we’ve selected a few @firebase/app examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paularmstrong / react-stateful-firestore / src / Provider.js View on Github external
getChildContext() {
    const { app, select, selectAuth, selectStorage, store } = this.props.store;
    return {
      firebase: {
        app,
        auth: firebase.auth(app),
        firestore: firebase.firestore(app),
        messaging: firebase.messaging(app),
        select,
        selectAuth,
        selectStorage,
        storage: firebase.storage(app),
        store
      }
    };
  }
github engaging-computing / MYR / src / firebase.js View on Github external
storageBucket: "gs://myrjsecg.appspot.com",
    messagingSenderId: "967963389163"
};

firebase.initializeApp(config);
export default firebase;
export const provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
    prompt: "select_account"
});
export const auth = firebase.auth();
export const db = firebase.firestore();
export const scenes = db.collection("scenes");
export const snaps = db.collection("snaps");
export const classes = db.collection("classes");
export const storageRef = firebase.storage().ref();