Skip to content

Update to the latest version of React Native peer dependency for version 79.4 #991

Open

Description

@jaaywags

Bug report

When trying to update to the latest version of react native (version 0.79.4) I get this error.

npm error Conflicting peer dependency: react@19.0.0
npm error node_modules/react
npm error   peer react@"^19.0.0" from react-native@0.79.4
npm error   node_modules/react-native
npm error     react-native@"0.79.4" from the root project
npm error     peer react-native@"*" from @react-native-community/datetimepicker@8.4.1
npm error     node_modules/@react-native-community/datetimepicker
npm error       @react-native-community/datetimepicker@"8.4.1" from the root project
npm error     5 more (expo, @expo/dom-webview, @expo/metro-runtime, ...)

Reproducible sample code

Package.json

"@react-native-community/datetimepicker": "8.4.1",

Steps to reproduce

  1. Attempt to install @react-native-community/datetimepicker@8.4.1 in conjunction with react-native@0.79.4

Describe what you expected to happen:

  1. Run npm i
  2. Do not receive an error.

Environment info

Expo 52 trying to move to 53

This is closely related to issue #893

Activity

  1. jaaywags commented on Jul 22, 2025

    @jaaywags
    Author

    I was able to fix this by just removing package-lock.json and node_modules. This is my package.json

    {
      "name": "MyApp",
      "main": "expo-router/entry",
      "version": "0.0.1",
      "scripts": {
        "start": "npx expo start"
      },
      "jest": {
        "preset": "jest-expo"
      },
      "dependencies": {
        "@react-native-community/datetimepicker": "8.4.1",
        "@react-native-firebase/analytics": "^22.2.0",
        "@react-native-firebase/app": "^22.2.0",
        "@react-native-firebase/auth": "^22.2.0",
        "@react-native-firebase/crashlytics": "^22.2.0",
        "@react-native-firebase/messaging": "^22.2.0",
        "@react-navigation/native": "^7.0.14",
        "axios": "^1.7.2",
        "core-js": "^3.39.0",
        "expo": "^53.0.20",
        "expo-application": "~6.1.5",
        "expo-build-properties": "~0.14.8",
        "expo-clipboard": "~7.1.5",
        "expo-constants": "~17.1.7",
        "expo-dev-client": "~5.2.4",
        "expo-navigation-bar": "~4.2.7",
        "expo-router": "~5.1.4",
        "expo-splash-screen": "~0.30.10",
        "expo-status-bar": "~2.2.3",
        "expo-system-ui": "~5.0.10",
        "expo-updates": "~0.28.17",
        "expo-web-browser": "~14.2.0",
        "patch-package": "^8.0.0",
        "react": "19.1.0",
        "react-dom": "19.1.0",
        "react-native": "0.79.5",
        "react-native-dialog": "^9.3.0",
        "react-native-gesture-handler": "~2.24.0",
        "react-native-reanimated": "~3.17.4",
        "react-native-reanimated-carousel": "^4.0.2",
        "react-native-safe-area-context": "5.4.0",
        "react-native-screens": "~4.11.1",
        "react-native-web": "^0.20.0"
      },
      "devDependencies": {
        "@babel/core": "^7.20.0",
        "@types/jest": "^29.5.12",
        "@types/react": "~19.1.8",
        "@types/react-test-renderer": "^19.1.0",
        "babel-plugin-module-resolver": "^5.0.2",
        "jest": "^29.2.1",
        "jest-expo": "~52.0.6",
        "react-test-renderer": "19.1.0",
        "typescript": "~5.3.3"
      },
      "private": true
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions