Skip to content

Commit

Permalink
Add support for document instance in React Native (facebook#32260)
Browse files Browse the repository at this point in the history
Summary:
## Summary

We're adding support for `Document` instances in React Native (as
`ReactNativeDocument` instances) in
facebook#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 facebook#49012
manually syncing these changes.

DiffTrain build for [b2357ecd8203341a3668a96d32d68dd519e5430d](facebook/react@b2357ec)

Differential Revision: D68839346
  • Loading branch information
rubennorte authored and facebook-github-bot committed Jan 29, 2025
1 parent ea1260a commit db9a915
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noformat
* @nolint
* @flow strict
* @generated SignedSource<<c6ea057ee85cbc116a083e3a306b2b88>>
* @generated SignedSource<<694ba49f9b85f1cc713053fe7628684a>>
*/

import type {ElementRef, ElementType, MixedElement} from 'react';
Expand Down Expand Up @@ -232,6 +232,7 @@ export opaque type Node = mixed;
export opaque type InternalInstanceHandle = mixed;
type PublicInstance = mixed;
type PublicTextInstance = mixed;
export opaque type PublicRootInstance = mixed;

export type ReactFabricType = {
findHostInstance_DEPRECATED<TElementType: ElementType>(
Expand Down

0 comments on commit db9a915

Please sign in to comment.