Skip to content

Incompatibilidad: peer dependency de react@19.0.0 con @react-native-community/datetimepicker (Expo SDK 53) #778

@ROBER-SALAMA

Description

@ROBER-SALAMA

Environment

Platforms

Versions

  • expo: ~53.0.0
  • react: 19.0.0
  • react-native: 0.79.3
  • react-native-modal-datetime-picker: 18.0.0
  • @react-native-community/datetimepicker: ^8.4.1

Description

I am trying to upgrade my application from Expo SDK 52 to SDK 53. Expo SDK 53 introduces React 19.0.0 and React Native 0.79.3.

During the upgrade process, specifically when running npm install (or npx expo install --fix), I am encountering an ERESOLVE error related to a peer dependency conflict with @react-native-community/datetimepicker and React 19.

I have followed the recommended steps, including:

  1. update expo-cli and eas-cli.
  2. Run npx expo install expo@^53.0.0.0.
  3. Clean node_modules and package-lock.json.

**I confirmed that react-native-modal-datetime-picker is at its latest version 18.0.0.0.

Following the template directions, I uninstalled react-native-modal-datetime-picker and tried to directly use @react-native-community/datetimepicker (version 8.4.1). Unfortunately, the ERESOLVE problem with the peer dependency of react@19.0.0 persists even when using the community component directly. This suggests that the current version of @react-native-community/datetimepicker may not be fully compatible with React 19.

The exact error I receive is as follows.

Translated with DeepL.com (free version)

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: e-billing@1.0.1
npm ERR! Found: @react-native-community/datetimepicker@8.2.0
npm ERR! node_modules/@react-native-community/datetimepicker
npm ERR! @react-native-community/datetimepicker@"8.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @react-native-community/datetimepicker@"8.3.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@19.0.0
npm ERR! node_modules/react
npm ERR! peer react@"^19.0.0" from react-native@0.79.3
npm ERR! node_modules/react-native
npm ERR! react-native@"0.79.3" from the root project
npm ERR! peer react-native@"*" from @react-native-community/datetimepicker@8.3.0

I was hoping that the dependency installation would complete without errors, allowing the successful upgrade to Expo SDK 53.

I would appreciate any guidance on whether there is an update planned to address this incompatibility with React 19, or any workarounds. thanks!

Reproducible Demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions