ERROR Error: You attempted to use a Firebase module that’s not installed natively on your project by calling firebase.app().
Ensure you have installed the npm package ‘@react-native-firebase/app’, have imported it in your project, and have rebuilt your native application.
This error is located at:
in app
in RCTView (created by View)
in View (created by AppContainer)
in ChildrenWrapper (created by Root)
in _default (created by Root)
in Root (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in Integrity(RootComponent), js engine: hermes
After upgrading React Native from 0.68.4 to 0.73.4, I reinstalled Firebase using Yarn.
I double-checked my Firebase setup in MainApplication.java to ensure the Firebase app module was correctly imported.
I also verified that my Firebase initialization code (firebase.app()) was correctly implemented, and this setup worked perfectly before the upgrade.
I expected the Firebase module to initialize and work as it did before the React Native version upgrade, with no native module errors. I was hoping that after the upgrade, Firebase would continue to integrate smoothly into my project without any issues.