Skip to content

fix: update @react-native-aria/checkbox dependency of @react-aria/checkbox to support react 19 #2994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

markrickert
Copy link

As I was developing in my own monorepo using Expo SDK 53 ([email protected] & [email protected]) I got the following dependency warnings:

react is listed by your project with version 19.0.0 (p1796f), which doesn't satisfy what 
@react-aria/checkbox (via @gluestack-ui/checkbox) and other dependencies request 
(but they have non-overlapping ranges!).

The @react-aria/checkbox dependency in @react-native-aria/checkbox is currently 5 years old and doesn't support react 19 as a peer dependency. This PR updates the @react-native-aria/checkbox dependency to the latest version of @react-aria/checkbox with more modern peer dependencies to support react 19 (and 18 too!)

  • @react-native-aria/[email protected] peerDependencies: "react": "^16.8.0 || ^17.0.0-rc.1"
  • @react-native-aria/[email protected] peerDependencies: "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"

I had to put the following into my own monorepo at the root package.json to fix this:

"resolutions": {
   "@react-aria/checkbox": "^3.15.7"
},

This updates the @react-native-aria/checkbox dependency of @react-aria/checkbox
so that it supports react 19.

The warning I was getting is:

react is listed by your project with version 19.0.0 (p1796f), which doesn't satisfy what
@react-aria/checkbox (via @gluestack-ui/checkbox) and other dependencies request
(but they have non-overlapping ranges!).
Copy link

vercel bot commented Jul 15, 2025

Someone is attempting to deploy a commit to the gluestack Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant