My app is connected to firebase and auth is working fine. However, when trying to use firestore I can't figure out this problem. 

Possible Unhandled Promise Rejection (id: 0):
Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp()

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.

I have tried doing console.log(firebase.app().name) which gives the name of the app, so not sure how it is not initialised.

```
var firebaseConfig = {
  apiKey: "***",
  authDomain: "***",
  databaseURL: "***",
  projectId: "***",
  storageBucket: "***",
  messagingSenderId: "***",
  appId: "***",
  measurementId: "****",
}

firebase.initializeApp(firebaseConfig)
const db = firebase.firestore()

```

My imports are 

```
import "firebase/firestore"
import firebase from "firebase"
import firestore from "@react-native-firebase/firestore"

```

I have tried so many different questions on here and forums but nothing has helped