Skip to content

Multiple packages using Firebase #4360

Answered by mikehardy
wassil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

Here's the most basic integration for react-native-firebase, based on our documentation here (https://rnfirebase.io):

https://github.com/mikehardy/rnfbdemo/blob/fc7e943ca95fe1777300985f31db2a075d2da4a5/make-demo.sh#L23-L35

Seems odd to initialize the '[DEFAULT]' app for Firebase as a secondary app, so I'm not sure that's correct either.

Firebase initialization on Android is hooked by the system a little cleverly in that it is done as a ContentProvider since those are instantiated prior to Application::onCreate even

<provider
android:name="io.invertase.firebas…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wassil
Comment options

@mikehardy
Comment options

Answer selected by wassil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants