Reputation: 1
I tried using "npm install @react-native-firebase/messaging" in cmd and an issue occured while installing.
While resolving: [email protected] Found: [email protected] node_modules/react react@"17.0.2" from the root project peer react@"*" from @react-native-firebase/[email protected] node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" from the root project
Could not resolve dependency: peer react@"17.0.1" from [email protected] node_modules/react-native react-native@"0.64.0" from the root project peer react-native@"*" from @react-native-firebase/[email protected] node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" from the root project
Upvotes: 0
Views: 3952
Reputation: 2478
You need install latest version of @react-native-firebase/app
and the same version of @react-native-firebase/analytics
. Because in March this library update depedencies for react
.
Changes you can see here https://github.com/invertase/react-native-firebase/pull/5042/files
npm install @react-native-firebase/app@latest
npm install @react-native-firebase/analytics@latest
Upvotes: 3