Description
Operating System
Mac OS
Environment (if applicable)
Expo 52 / React Native
Firebase SDK Version
11.6.1
Firebase SDK Product(s)
Auth
Project Tooling
Environment
firebase: 11.6.1
react-native: 0.79.1
expo: 53.0.1
@react-native-async-storage/async-storage: 2.1.2
Detailed Problem Description
When using the Firebase JS SDK ([email protected]) with React Native ([email protected]), initializing Auth without explicitly providing AsyncStorage results in:
The warning appears even though @react-native-async-storage/async-storage is installed.
The error [Error: Component auth has not been registered yet] is thrown on initialization.
This occurs when using the standard getAuth() import from firebase/auth.
Steps and code to reproduce issue
Install dependencies as above.
Initialize Firebase and Auth in a React Native project.
Observe the warning and error on app start.
Expected Behavior
Auth should initialize without error if AsyncStorage is installed.
If AsyncStorage is required, the SDK should detect and use it automatically, or provide clear instructions for React Native users.