'Firebase App 'initliazation' in component structure react native
I'm currently getting this error in my react native code, FirebaseError:
Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app),
I think the problem stems from that I don't know where to call the initialize app in the component structure. I want to have some components call data from the firestore database and others verify authentication. Where is the initialize app supposed to be ran? For every component? (that doesn't seem right) currently I'm running initApp() at the first component in my structure. Any help or an explanation would be appreciated. I'm using firebase version 9.1.0
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
