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

209
Views
Firebase.auth() is not a function Error REACT NATIVE

I am trying to implement firebase authentication in my project. However, I'm getting the error Firebase.auth() is not a function. Does anyone know why this is happening?

App.js

import { initializeApp } from 'firebase/app';
import * as firebase from "firebase/app";
const firebaseConfig = {
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: ""
};
firebase.initializeApp(firebaseConfig);

js

import React from "react";
import * as firebase from "firebase/app";
export const loginRequest = (email, password) =>
  firebase.auth().signInWithEmailAndPassword(email, password);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

use

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

instead.

or

import * as firebase from '@react-native-firebase';

You are trying to use the App library for everything. It only works as the App library.

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!