[react-native] fix divergence in synced code (#32348)
Alternative to #32334
lauren committed
Feb 10, 2025 at 14:08 UTC
3dd2c627707fea4f45fd8e5cc583036a72e3f77b
1 file changed
+2
-1
packages/react-native-renderer/src/ReactNativeTypes.js
+2
-1
@@ -10,6 +10,7 @@
10
*/
11
12
import type {ElementRef, ElementType, MixedElement} from 'react';
13
+import {type PublicRootInstance} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
14
15
export type MeasureOnSuccessCallback = (
16
x: number,
@@ -231,7 +232,6 @@ export opaque type Node = mixed;
232
export opaque type InternalInstanceHandle = mixed;
233
type PublicInstance = mixed;
234
type PublicTextInstance = mixed;
234
-export opaque type PublicRootInstance = mixed;
235
236
export type ReactFabricType = {
237
findHostInstance_DEPRECATED<TElementType: ElementType>(
@@ -261,6 +261,7 @@ export type ReactFabricType = {
261
getPublicInstanceFromInternalInstanceHandle(
262
internalInstanceHandle: InternalInstanceHandle,
263
): PublicInstance | PublicTextInstance | null,
264
+ getPublicInstanceFromRootTag(rootTag: number): PublicRootInstance | null,
265
...
266
};
267