Open
Description
Operating System
macOS Sequoia 15.4.1
Environment (if applicable)
React native: 0.76.9
Firebase SDK Version
11.6.0
Firebase SDK Product(s)
Auth
Project Tooling
Expo: v52.0.0
React-native: v0.76.9
Detailed Problem Description
Hello here's the error i got when trying to load my app using expo, my initial goal is to implement MFA with TOTP for my react-native app (note: it works perfectly fine on the web app using React):
`Unable to resolve "./index.shared" from "node_modules/@firebase/auth/dist/index.rn.d.ts"``
This happens on both Simulator for iPhone and on Android.
Added this to my tsconfig to fix the error on my IDE (cursor) when importing getReactNativePersistence
, which works
{
"compilerOptions": {
"paths": {
"@firebase/auth": ["./node_modules/@firebase/auth/dist/index.rn.d.ts"]
}
},
"extends": "expo/tsconfig.base"
}

Steps and code to reproduce issue
import { initializeAuth, getReactNativePersistence } from '@firebase/auth';
const app = initFirebase();
initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage),
});