necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.6k stars 1.79k forks source link

React 19 support #2686

Open pierpo opened 3 months ago

pierpo commented 3 months ago

Is there an existing request?

Describe the feature request

Hey,

I just tried setting up React 19 on my React Native Web project.

It doesn't work yet, as the following functions are not found anymore:

They were deprecated with React 18 and won't work with React 19.

(Sorry, I haven't found any other topic mentioning the React 19 support)

Thanks 🙌

necolas commented 3 months ago
  1. Use mode:concurrent => https://necolas.github.io/react-native-web/docs/app-registry/#appparams
  2. Stop using findNodeHandle

I don't know what other changes are needed for React 19, but will review PRs as long as they don't break React 18 support. Any other issues are probably going to be traced back to React Native's APIs (e.g., findNodeHandle is being preserved in Fabric but has no analog in React DOM because of the removal of findDOMNode) and 3P libraries not being web compatible given the changes React is undergoing on web.