Getting app instance from React Native Firebase #7130
Unanswered
jakechao-zeal
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi. I am new to React Native Firebase and attempting to migrate to using React Native Firebase with an app that was previously using React Redux Firebase with the Firebase Web JS SDK. In order to use React Redux Firebase, I need to get the Firestore app instance that React Native Firebase is using.
To be clear, I am mentioning React Redux Firebase for context but the error I am receiving I believe is from React Native Firebase and I've tried to use it in isolation as well.
I am following the instructions per React-Redux-Firebase integration of native modules.. Here is what my App.tsx looks like roughly.
I am using Expo Managed Workflow and have done the proper setup to link the
Google-Services-Info.plist
to my Expo development build. However, when attempting to bundle and load my app in my development build, I receive the following error:FirebaseError: Firebase: Need to provide options, when not being deployed to hosting via source. (app/no-options).
The reason I am posting on this forum is that I've tried to call RNFirebase.app() in isolation of any React Redux Firebase code and the error is still thrown.
I am able to use React Native Firebase alone but whenever trying to get the app instance via
.app()
, it throws the above error. I'm under the impression that React Native Firebase will already initialize the app given the Google plist so how do I get the app instance it created so I can use it as needed?I have tried following the steps listed in https://stackoverflow.com/questions/68397443/react-native-firebase-integration-with-react-redux-firebase-v3 but I have had no luck with solving this issue. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions