Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
using firebase in react-native apps

I am trying to configure firebase for my react native app. I get the following error:

Attempted import error: '@firebase/app' does not contain a default export (imported as 'firebase').

I am using firebase SDK 8.2.3 and the following code to configure firebase in my app:

import firebase from 'firebase';
import '@firebase/auth';
import '@firebase/firestore';

const firebaseConfig = {
    ...
  };


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

export { firebase };
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You have to import firebase as below

import firebase from "firebase/app" 
about 4 years ago · Juan Pablo Isaza Report

0

bro just use this package

[https://rnfirebase.io/]

it is efficient and easy to use with all the use-case examples

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!