title: React-Native: Firebase Error: No Firebase App [DEFAULT] has been created - call Firebase App.initializeApp() (app/no-app)
body: <p>I am getting this error when I was trying to connect firebase with my React Native App.</p>
  <p>Firebase Error: No Firebase App [DEFAULT] has been created - call Firebase App.initializeApp() (app/no-app)</p>
  <p>I have added my code here-</p>
  <pre><code>    import { initializeApp } from &quot;firebase/app&quot;;
      import { getAuth } from &quot;firebase/auth&quot;;
      import { getFirestore } from &quot;firebase/firestore&quot;;
  
     // Your web app's Firebase configuration
  const RNfirebaseConfig = {
    apiKey: &quot;........&quot;,
    authDomain: &quot;note-app-rn.firebaseapp.com&quot;,
    projectId: &quot;note-app-rn&quot;,
    storageBucket: &quot;note-app-rn.appspot.com&quot;,
    messagingSenderId: &quot;.....&quot;,
    appId: &quot;......&quot;
  };
  
  const app = initializeApp(RNfirebaseConfig);
  export const auth = getAuth(app);
  export const db = getFirestore(app);
  </code></pre>