Skip to content

Conversation

@miblanchard
Copy link
Contributor

@miblanchard miblanchard commented Jun 29, 2025

In our repo we needed to make this change in order for the Modal component to continue working with React/ReactDOM 19.1.

This pull request changes the ModalPortal implementation in packages/react-native-web/src/exports/Modal/ModalPortal.js by replacing the ReactDOM import with createPortal directly from react-dom. This change streamlines the code and ensures consistency in how portals are created.

Code simplification:

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@necolas necolas closed this in 3013038 Jul 25, 2025
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