React native crashes after bundling

1 week ago 6
ARTICLE AD BOX

I recently upgraded a React Native app from expo 49 to 54. The app uses firebase authentication. The app crahes without any error message in the console. It only shows the error on the screen.

Here is the firebaseConfig.js file content:

import { FirebaseOptions, initializeApp, getApps, getApp } from "firebase/app"; //@ts-ignore import { initializeAuth, //@ts-ignore getReactNativePersistence, getAuth, } from "firebase/auth"; import ReactNativeAsyncStorage from "@react-native-async-storage/async-storage"; const firebaseConfig: FirebaseOptions = { apiKey: process.env.EXPO_PUBLIC_FIREBASE_API_KEY, authDomain: process.env.EXPO_PUBLIC_FIREBASE_PROJECT_AUTH_DOMAIN, databaseURL: process.env.EXPO_PUBLIC_FIREBASE_PROJECT_DATABASE_URL, projectId: process.env.EXPO_PUBLIC_FIREBASE_PROJECT_ID, storageBucket: process.env.EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET, messagingSenderId: process.env.EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, appId: process.env.EXPO_PUBLIC_FIREBASE_APP_ID, measurementId: process.env.EXPO_PUBLIC_FIREBASE_MEASUREMENT_ID, }; // Initialize Firebase const app = initializeApp(firebaseConfig); export const auth = initializeAuth(app, { persistence: getReactNativePersistence(ReactNativeAsyncStorage), });

enter image description here

Read Entire Article