Click here to Skip to main content
15,749,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Team

I am developing a react-native, but i am experience some length error problem with my firebase version. How do i configure this version in react-native?

What I have tried:

// Import the functions you need from the SDKs you need
import * as firebase from "firebase";
// TODO: Add SDKs for Firebase products that you want to use

// Your web app's Firebase configuration
const firebaseConfig = {
  apiKey: "AIzaSyCA6GQQRquvLLrdyO8wuYUc0s6FWGKF5-Y",
  authDomain: "",
  projectId: "eshopmobile-fb508",
  storageBucket: "",
  messagingSenderId: "734223583165",
  appId: "1:734223583165:web:6849ecf86323894686b4d4"

  // initialize firebase
  let app;

  if(!firebase.apps.length) {
    app = firebase.initializeApp(firebaseConfig);

 // const auth = firebase.auth()
  export {firebase};

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900