title: No Firebase App '[Default] has been created - call firebase.initializeApp()
body: <p>My app is connected to firebase and auth is working fine. However, when trying to use firestore I can't figure out this problem. </p>
  
  <p>Possible Unhandled Promise Rejection (id: 0):
  Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp()</p>
  
  <p>I am getting the above error however, I am already calling initializeApp and not sure what else to try. I am trying to get access to a collection on firestore and print it out but it gives me the error when I try to access firestore.</p>
  
  <p>I have tried doing console.log(firebase.app().name) which gives the name of the app, so not sure how it is not initialised.</p>
  
  <pre><code>var firebaseConfig = {
    apiKey: "***",
    authDomain: "***",
    databaseURL: "***",
    projectId: "***",
    storageBucket: "***",
    messagingSenderId: "***",
    appId: "***",
    measurementId: "****",
  }
  
  firebase.initializeApp(firebaseConfig)
  const db = firebase.firestore()
  </code></pre>
  
  <p>My imports are </p>
  
  <pre><code>import "firebase/firestore"
  import firebase from "firebase"
  import firestore from "@react-native-firebase/firestore"
  </code></pre>
  
  <p>I have tried so many different questions on here and forums but nothing has helped</p>