app/duplicate-app firebase code example
Example: firebase app named default already exists react native
if (!firebase.apps.length) {
firebase.initializeApp({});
}
if (!firebase.apps.length) {
firebase.initializeApp({});
}