Dependency error installing react native firebase crashlytics

When I try installing firebase crashlytics in my react native project, I get the following error:

code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @react-native-firebase/[email protected]
npm ERR! node_modules/@react-native-firebase/app
npm ERR!   @react-native-firebase/app@"^16.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @react-native-firebase/app@"17.3.2" from @react-native-firebase/[email protected]
npm ERR! node_modules/@react-native-firebase/crashlytics
npm ERR!   @react-native-firebase/crashlytics@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

This is my (part) of my package.json

"dependencies": {
    "@ptomasroos/react-native-multi-slider": "^2.2.2",
    "@react-native-async-storage/async-storage": "^1.15.5",
    "@react-native-community/netinfo": "^9.0.0",
    "@react-native-firebase/app": "^16.5.0",
    "@react-native-firebase/auth": "^16.5.0",
    "@react-native-firebase/messaging": "^16.5.0",
    "@react-navigation/bottom-tabs": "^6.3.1",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/stack": "^6.2.1",
    "axios": "^0.21.4",
    "date-fns": "^2.28.0",
    "i18n-js": "^3.9.2",
    "laravel-echo": "^1.11.3",
    "lodash": "^4.17.21",
    "mobx": "^6.0.4",
    "mobx-persist-store": "^1.0.3",
    "mobx-react": "^7.0.5",
    "moment": "^2.29.2",
    "pusher-js": "^7.0.3",
    "react": "17.0.2",
    "react-native": "0.68.5",
    "react-native-camera": "^4.2.1",
    "react-native-circular-progress-indicator": "^4.4.2",
    "react-native-device-info": "^9.0.2",
    "react-native-fast-image": "^8.5.11",
    "react-native-geolocation-service": "^5.1.1",
    "react-native-gesture-handler": "^1.9.0",
    "react-native-iap": "^8.0.5",
    "react-native-image-crop-picker": "^0.37.3",
    "react-native-image-picker": "^5.1.0",
    "react-native-image-resizer": "^1.4.5",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-localize": "^2.0.2",
    "react-native-modal": "^11.6.1",
    "react-native-purchases": "^5.10.1",
    "react-native-reanimated": "^2.8.0",
    "react-native-safe-area-context": "^4.3.1",
    "react-native-screens": "^3.13.1",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^13.7.0",
    "react-native-vector-icons": "^9.1.0",
    "react-native-video": "^6.0.0-alpha.4"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.67.0",
    "react-test-renderer": "17.0.2"
  },
  "jest": {
    "preset": "react-native"
  }