Description
When trying to build or install dependencies in a project using newer versions of the Nitro ecosystem (specifically react-native-nitro-modules@0.35.x), there is a peer dependency conflict with @bernagl/react-native-date.
The library currently strictly requires react-native-nitro-modules@"^0.31.10". However, many projects are now upgrading to newer versions (v0.35.x) required by other packages in the ecosystem (like react-native-nitro-file-system) or due to the migration to Expo 55.
Error Output
npm error code ERESOLVE
npm error While resolving: @bernagl/react-native-date@2.0.1
npm error Found: react-native-nitro-modules@0.35.2
npm error node_modules/react-native-nitro-modules
npm error react-native-nitro-modules@"^0.35.2" from the root project
...
npm error Could not resolve dependency:
npm error peer react-native-nitro-modules@"^0.31.10" from @bernagl/react-native-date@2.0.1
Environment
Expo version: 55
Package version: 2.0.1
Node version: v24.14.1
Platform: Android (EAS Build)
Suggested Fix
Update the peerDependencies in package.json to support a wider range of react-native-nitro-modules versions, or verify compatibility with the 0.35.x release to avoid the need for --legacy-peer-deps.
Thank you for maintaining this library!
Description
When trying to build or install dependencies in a project using newer versions of the Nitro ecosystem (specifically
react-native-nitro-modules@0.35.x), there is a peer dependency conflict with@bernagl/react-native-date.The library currently strictly requires
react-native-nitro-modules@"^0.31.10". However, many projects are now upgrading to newer versions (v0.35.x) required by other packages in the ecosystem (likereact-native-nitro-file-system) or due to the migration to Expo 55.Error Output
Environment
Expo version: 55
Package version: 2.0.1
Node version: v24.14.1
Platform: Android (EAS Build)
Suggested Fix
Update the peerDependencies in package.json to support a wider range of react-native-nitro-modules versions, or verify compatibility with the 0.35.x release to avoid the need for --legacy-peer-deps.
Thank you for maintaining this library!