I followed Expo docs instructions , however I was not sure what was going on. I installed firebase using npm. Then the next step is to copy the firebase installation information that I did from the firebase console.
import * as firebase from 'firebase';
const firebaseConfig = {
apiKey: "<YOUR-API-KEY>",
authDomain: "<YOUR-AUTH-DOMAIN>",
databaseURL: "<YOUR-DATABASE-URL>",
storageBucket: "<YOUR-STORAGE-BUCKET>"
};
firebase.initializeApp(firebaseConfig);
But where does this world of code go? In root navigation or router? How can I refer to it in other parts of my application. As you can tell, I'm pretty new to Expo and React-Native, so your help is appreciated.
source
share