Last active
August 4, 2020 17:19
-
-
Save popeating/b842398793dac1b9fcdcd7ed311d6a90 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 '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