0

When I build react native app I see this error: Incompatible React versions: the react and react-native-renderer on iphone . and this is my package.json screenshot of the error in emulator

so, I need help in this case. This image explains the error.

my package.json:

{
  "name": "ReactNativeTrial",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "overrides": {
    "react-native-reanimated": "^4.1.5"
  },
  "dependencies": {
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native/new-app-screen": "0.82.1",
    "@react-navigation/drawer": "^7.7.3",
    "@react-navigation/native": "^7.1.20",
    "@react-navigation/native-stack": "^7.6.2",
    "@react-navigation/stack": "^7.6.3",
    "native-base": "^3.4.28",
    "react": "^19.1.1",
    "react-dom": "^19.1.1",
    "react-native": "^0.82.1",
    "react-native-drawer-layout": "^4.2.0",
    "react-native-gesture-handler": "^2.29.1",
    "react-native-reanimated": "^4.1.5",
    "react-native-renderer": "^15.5.3",
    "react-native-safe-area-context": "^5.6.2",
    "react-native-screens": "^4.18.0",
    "react-native-svg": "^15.15.0",
    "react-native-worklets": "^0.6.1"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "20.0.0",
    "@react-native-community/cli-platform-android": "20.0.0",
    "@react-native-community/cli-platform-ios": "20.0.0",
    "@react-native/babel-preset": "0.82.1",
    "@react-native/eslint-config": "0.82.1",
    "@react-native/metro-config": "0.82.1",
    "@react-native/typescript-config": "0.82.1",
    "@types/jest": "^29.5.13",
    "@types/react": "^19.1.1",
    "@types/react-test-renderer": "^19.1.0",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "19.1.1",
    "typescript": "^5.8.3"
  },
  "engines": {
    "node": ">=20"
  }
}
3
  • Bump version of "react-native-renderer": "^15.5.3", to "react-native-renderer": "^16.0.0", Commented yesterday
  • No matching version found for react-native-renderer@^16.0.0 Commented yesterday
  • a third party dependency might be pulling React 19.2.0. Do a "yarn why react" to see who and see if you can instead force resolution to React 19.1.1 Commented 13 hours ago

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.