Skip to content

Instantly share code, notes, and snippets.

@popeating
Last active August 4, 2020 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popeating/b842398793dac1b9fcdcd7ed311d6a90 to your computer and use it in GitHub Desktop.
Save popeating/b842398793dac1b9fcdcd7ed311d6a90 to your computer and use it in GitHub Desktop.
import firebase from 'firebase';
/* Contstants allow to read data from app.json */
import Constants from 'expo-constants';
const firebaseConfig = {
apiKey: Constants.manifest.extra.API_KEY,
authDomain: Constants.manifest.extra.AUTH_DOMAIN,
databaseURL: Constants.manifest.extra.DATABASE_URL,
projectId: Constants.manifest.extra.PROJECT_ID,
storageBucket: Constants.manifest.extra.STORAGE_BUCKET,
messagingSenderId: Constants.manifest.extra.MESSAGE_SENDER_ID,
appId: Constants.manifest.extra.APP_ID,
measurementId: Constants.manifest.extra.MEASUREMENT_ID,
};
let Firebase = firebase.initializeApp(firebaseConfig);
export default Firebase;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment