diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 55ae2cc1b0..07030a6b7f 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -10,6 +10,7 @@ */ import type {ElementRef, ElementType, MixedElement} from 'react'; +import {type PublicRootInstance} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'; export type MeasureOnSuccessCallback = ( x: number, @@ -231,7 +232,6 @@ 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( @@ -261,6 +261,7 @@ export type ReactFabricType = { getPublicInstanceFromInternalInstanceHandle( internalInstanceHandle: InternalInstanceHandle, ): PublicInstance | PublicTextInstance | null, + getPublicInstanceFromRootTag(rootTag: number): PublicRootInstance | null, ... };