Skip to content

Commit 3dd2c62

Browse files
authored
[react-native] fix divergence in synced code (facebook#32348)
Alternative to facebook#32334
1 parent 93b5836 commit 3dd2c62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native-renderer/src/ReactNativeTypes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
import type {ElementRef, ElementType, MixedElement} from 'react';
13+
import {type PublicRootInstance} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
1314

1415
export type MeasureOnSuccessCallback = (
1516
x: number,
@@ -231,7 +232,6 @@ export opaque type Node = mixed;
231232
export opaque type InternalInstanceHandle = mixed;
232233
type PublicInstance = mixed;
233234
type PublicTextInstance = mixed;
234-
export opaque type PublicRootInstance = mixed;
235235

236236
export type ReactFabricType = {
237237
findHostInstance_DEPRECATED<TElementType: ElementType>(
@@ -261,6 +261,7 @@ export type ReactFabricType = {
261261
getPublicInstanceFromInternalInstanceHandle(
262262
internalInstanceHandle: InternalInstanceHandle,
263263
): PublicInstance | PublicTextInstance | null,
264+
getPublicInstanceFromRootTag(rootTag: number): PublicRootInstance | null,
264265
...
265266
};
266267

0 commit comments

Comments
 (0)