Add firebase to reaction-native?

Asked 1 years ago, Updated 1 years ago, 103 views

"react-native-firebase" for the current project: "5.6.0", I'm using it (I didn't make it, it's the source I received)

5.6.0",

I'm going to add a firebase ml kit here

"@react-native-firebase/app": "8.2.0"

will be added As a result, there is a firebase collision, but if you erase the existing 5.6.0, There's an error because there's nothing I've been using before, what should I do in this case?

And what is the difference between firebase/app 8.2.0 and firebase 5.6.0? And @I wonder what's stuck

Thank you

react-native

2022-09-20 21:32

1 Answers

Up to v5, core, auth, messaging, etc. were all included in react-native-firebase. After updating to v6, you can install packages in @react-native-firebase/messaging and @react-native-firebase/auth depending on the trend. The intention is to save capacity by installing only what you need to suit your taste without installing all the heavy packages.

For your information, an error may have occurred using v5 and v6. Refer to the Migration documentation to learn how to write only v6. It is not recommended to use v5 because it will be deprecated soon.

If you look at the error message, you can find where the error is coming from. If you post errors that you can track when you ask questions, it will help the respondent answer them :)


2022-09-20 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.