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