{"library":"react-native-firebaseui-auth","title":"React Native FirebaseUI Auth","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install react-native-firebaseui-auth"],"cli":null},"imports":["import Auth from 'react-native-firebaseui-auth'","import { AuthEventEmitter } from 'react-native-firebaseui-auth'","import { AuthEvents } from 'react-native-firebaseui-auth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import Auth, { AuthEventEmitter, AuthEvents } from 'react-native-firebaseui-auth';\n\n// Listen for auth state changes\ncomponentDidMount() {\n  this.listener = AuthEventEmitter.addListener(\n    AuthEvents.AUTH_STATE_CHANGED,\n    (event) => {\n      console.log('User:', event.user);\n    }\n  );\n}\n\ncomponentWillUnmount() {\n  this.listener.remove();\n}\n\n// Configure sign-in providers\nconst config = {\n  providers: ['email', 'google', 'facebook', 'anonymous'],\n};\n\n// Start sign-in flow\nAuth.signIn(config)\n  .then((result) => console.log('Signed in:', result.user))\n  .catch((error) => console.error('Auth error:', error));","lang":"typescript","description":"Shows default import, named event emitter, provider config, and sign-in call.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}