mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
ace656de3806dec94e46d1d1e7429ca34be84972
## Summary
We're adding support for `Document` instances in React Native (as
`ReactNativeDocument` instances) in
https://github.com/facebook/react-native/pull/49012 , which requires the
React Fabric renderer to handle its lifecycle.
This modifies the renderer to create those document instances and
associate them with the React root, and provides a new method for React
Native to access them given its containerTag / rootTag.
## How did you test this change?
Tested e2e in https://github.com/facebook/react-native/pull/49012
manually syncing these changes.
DiffTrain build for [b2357ecd82](https://github.com/facebook/react/commit/b2357ecd8203341a3668a96d32d68dd519e5430d)
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%