-
Notifications
You must be signed in to change notification settings - Fork 396
Description
Environment
Platforms
Versions
expo:~53.0.0react:19.0.0react-native:0.79.3react-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:
- update
expo-cliandeas-cli. - Run
npx expo install expo@^53.0.0.0. - Clean
node_modulesandpackage-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!