Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
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 Respuestas
Responde la pregunta

0

You have to import firebase as below

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

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda