Skip to content

Compatible with existing Firebase JS SDK? #6969

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

You must be logged in to vote

In general you will not want to mix the two libraries, as react-native-firebase bundles firebase-android-sdk and firebase-ios-sdk (the native SDKs) for you. Pulling in the JS SDK at the same time is probably redundant and it would be better to use the native SDKs via react-native-firebase APIs

That said, sure, you can use the JS SDK for some things and react-native-firebase for others. They have different import namespaces so javascript will let you.

You'll still need to install + configure + use react-native-firebase correctly (for whatever parts of it you choose to use...) according to the documentation, including the core "app" module.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikehardy
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