2

This Error Show In react-native please Give Me Solution Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app). import * as firebase from "firebase"; require("firebase/firestore") const firebaseConfig = { configuration }; // Initialize Firebase firebase.initializeApp(firebaseConfig); var db = ...

1 Answer 1

3

Are you using the wrong package?

Installation

# Install & setup the app module
yarn add @react-native-firebase/app

# Install the firestore module
yarn add @react-native-firebase/firestore

Usage

import firestore from '@react-native-firebase/firestore';

const usersCollection = firestore().collection('Users');

https://rnfirebase.io/firestore/usage

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.