Error when installing the module inside of a brand new Expo managed project #6571
Unanswered
peterpelle
asked this question in
Q&A
Replies: 1 comment
-
I'm having the same issue. Maybe try adding "@react-native-firebase/auth" into your plugins? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I followed https://rnfirebase.io/#managed-workflow guide on how to install Firebase. I created a new Expo app with:
npx create-react-native-app -t with-dev-client
As written in the guide. I then did
npx expo install @react-native-firebase/app
npx expo install @react-native-firebase/auth
I followed the guide, added the GoogleServices to the root of the directory and copied the app.json edits into the correct position.
I then installed @react-native-firebase/perf, /crashlytics and expo-build-properties and added the use_frameworks.
Next I finished the guide with npx expo prebuild --clean.
Which gave this warning:
Having nothing in the project except 2 View components and a Button that creates an account with createUserWithEmailAndPassword.
This is when I am presented with the error:
Ensure you have:imported the 'io.invertase.firebase.app.ReactNativeFirebaseAppPackage' module in your 'MainApplication.java' file.Added the 'new ReactNativeFirebaseAppPackage()' line inside of the RN 'getPackages()' method list. See http://invertase.link/android for full setup instructions.
My App.js:
Did I mess up on the way, or is there more steps than the guide suggests, and what can I do to fix it?
This was tested on an Android Emulator, launched by pressing 'a' in the terminal.
I appreciate any help!
Edit: Clarified a few things and provided more information.
app.json:
EDIT:
Problem was Expo Go. Switching to a custom build solved it.
Beta Was this translation helpful? Give feedback.
All reactions