Skip to content

React 19 fixes #705

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 5 commits into
base: main
Choose a base branch
from
Open

React 19 fixes #705

wants to merge 5 commits into from

Conversation

stephentuso
Copy link

@stephentuso stephentuso commented May 5, 2025

Summary:

Fixes #701
Fixes #695

defaultProps and findDOMNode were removed in React 19.

For findDOMNode: it wasn't actually needed, as the ref is already pointed at the element. I added dom to the TS libs to support the type, but we can use a ts-ignore if you don't want that.

For defaultProps: I moved the values to default parameters in the function component and cleaned up the logic some

Test Plan:

example-web is updated to react 19 and fully working now.

I haven't gotten a chance to test this on native yet

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.

findDOMNode usage breaks on React 19 with react-native-web 0.20+ android - sliding broken on RN 0.79 (rc3)
1 participant