Registry / aws / react-native-firebaseui-auth

react-native-firebaseui-auth

JSON →
library2.0.0jsnpmunverified

A React Native library that wraps FirebaseUI Authentication, providing a drop-in UI for sign-in methods (email, Google, Facebook, anonymous) on iOS and Android. Version 2.0.0 updates Android dependencies and is compatible with React Native >=0.59.0. Ships TypeScript types. Key differentiators: uses native FirebaseUI SDKs for consistent look-and-feel, supports auth state event listeners, and allows automatic upgrade of anonymous users.

npm install react-native-firebaseui-auth
INSTALL
IMPORT
SIG · REACT-NATIVE-FIREB
R
react-native-firebaseui-auth
awsjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Auth
import Auth from 'react-native-firebaseui-auth'
const Auth = require('react-native-firebaseui-auth')
Default export is ESM-only. CommonJS require is not supported.
AuthEventEmitter
import { AuthEventEmitter } from 'react-native-firebaseui-auth'
import AuthEventEmitter from 'react-native-firebaseui-auth'
Named export, not default.
AuthEvents
import { AuthEvents } from 'react-native-firebaseui-auth'
const { AuthEvents } = require('react-native-firebaseui-auth')
ESM named import is required. CJS destructure is unsupported.

Shows default import, named event emitter, provider config, and sign-in call.

import Auth, { AuthEventEmitter, AuthEvents } from 'react-native-firebaseui-auth'; // Listen for auth state changes componentDidMount() { this.listener = AuthEventEmitter.addListener( AuthEvents.AUTH_STATE_CHANGED, (event) => { console.log('User:', event.user); } ); } componentWillUnmount() { this.listener.remove(); } // Configure sign-in providers const config = { providers: ['email', 'google', 'facebook', 'anonymous'], }; // Start sign-in flow Auth.signIn(config) .then((result) => console.log('Signed in:', result.user)) .catch((error) => console.error('Auth error:', error));
Debug
Known issues
breakingVersion 2.0.0 updates Android dependencies, may conflict with existing Firebase/AndroidX setup.
fix
Ensure your project uses compatible Firebase and AndroidX versions. Update android/build.gradle as needed.
affects: >=2.0.0
deprecatedv1.3.46 renamed `delete` to `deleteUser`. The old `delete` method is removed.
fix
Replace calls to `Auth.delete()` with `Auth.deleteUser()`.
affects: >=1.3.46
gotchaPackage uses ESM only. Using require() or CJS syntax will fail at runtime.
fix
Use ES import syntax: `import Auth from 'react-native-firebaseui-auth'`.
affects: >=1.0.0
gotchaAuthEventEmitter and AuthEvents are named exports, not part of default export.
fix
Import with `import { AuthEventEmitter, AuthEvents } from 'react-native-firebaseui-auth'`.
affects: >=1.0.0
gotchaReact Native >=0.60 uses autolinking, no manual linking needed. Linking steps for <=0.59 only.
fix
For RN >=0.60, simply install the package; no react-native link required.
affects: >=0.60
Errors
Common errors & fixes
Cannot find module 'react-native-firebaseui-auth'
Package not installed or import path incorrect.
fix
Run `npm install react-native-firebaseui-auth` or `yarn add react-native-firebaseui-auth`.
TypeError: Auth.signIn is not a function
Incorrect import – likely used { Auth } named import instead of default.
fix
Use `import Auth from 'react-native-firebaseui-auth'` instead of `import { Auth } from ...`.
undefined is not an object (evaluating 'AuthEventEmitter.addListener')
AuthEventEmitter imported incorrectly as default.
fix
Use `import { AuthEventEmitter } from 'react-native-firebaseui-auth'`.
Module 'react-native-firebaseui-auth' has no exported member 'AuthEvents'
Importing AuthEvents as default or wrong path.
fix
Ensure import: `import { AuthEvents } from 'react-native-firebaseui-auth'`.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
react-nativerequiredpeer dependency required for React Native bridge
Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
react-native-firebaseui-auth — npm install react-native-firebaseui-auth · libregistry