Skip to content

Add React DOM 19 support #2768

Closed
Closed
@nandorojo

Description

@nandorojo

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

(I tried to find a duplicate issue)

React DOM 19 appears to deprecate hydrate and unmountComponentAtNode, leading to these warnings:

⚠ ./node_modules/react-native-web/dist/exports/render/index.js
Attempted import error: 'hydrate' is not exported from 'react-dom' (imported as 'domLegacyHydrate').

Import trace for requested module:
./node_modules/react-native-web/dist/exports/render/index.js
./node_modules/react-native-web/dist/index.js
./app/styles-provider.tsx

./node_modules/react-native-web/dist/exports/unmountComponentAtNode/index.js
Attempted import error: 'unmountComponentAtNode' is not exported from 'react-dom' (imported as 'unmountComponentAtNode').

Import trace for requested module:
./node_modules/react-native-web/dist/exports/unmountComponentAtNode/index.js
./node_modules/react-native-web/dist/index.js

Expected behavior

Update values to match React DOM 19. I haven't jumped into the code for this yet, I wanted to wait to see if it's a known issue first before digging in or sending a PR.

Steps to reproduce

Install react-native-web@0.19.12 in a Next.js app, (with Next.js 15) and yarn add react.

Test case

Happy to provide one if needed, just let me know.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions