FirebaseError: Firebase: Firebase App name '[Default]' already exists code example
Example: firebase app named default already exists react native
if (!firebase.apps.length) {
firebase.initializeApp({});
}
if (!firebase.apps.length) {
firebase.initializeApp({});
}