@@ -14,6 +14,8 @@ import type {ElementRef, ElementType} from 'react';
14
14
import {
15
15
UIManager ,
16
16
legacySendAccessibilityEvent ,
17
+ getNodeFromPublicInstance ,
18
+ getNativeTagFromPublicInstance ,
17
19
} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ;
18
20
19
21
import {
@@ -23,11 +25,6 @@ import {
23
25
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
24
26
import getComponentNameFromType from 'shared/getComponentNameFromType' ;
25
27
26
- import {
27
- getNodeFromPublicInstance ,
28
- getNativeTagFromPublicInstance ,
29
- } from './ReactFabricPublicInstanceUtils' ;
30
-
31
28
const ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ;
32
29
33
30
export function findHostInstance_DEPRECATED < TElementType : ElementType > (
@@ -83,6 +80,7 @@ export function findHostInstance_DEPRECATED<TElementType: ElementType>(
83
80
84
81
// findHostInstance handles legacy vs. Fabric differences correctly
85
82
// $FlowFixMe[incompatible-exact] we need to fix the definition of `HostComponent` to use NativeMethods as an interface, not as a type.
83
+ // $FlowFixMe[incompatible-return]
86
84
return hostInstance ;
87
85
}
88
86
@@ -147,9 +145,8 @@ export function findNodeHandle(componentOrHandle: any): ?number {
147
145
return hostInstance ;
148
146
}
149
147
150
- // $FlowFixMe[prop-missing ] For compatibility with legacy renderer instances
148
+ // $FlowFixMe[incompatible-type ] For compatibility with legacy renderer instances
151
149
if ( hostInstance . _nativeTag != null ) {
152
- // $FlowFixMe[incompatible-return]
153
150
return hostInstance . _nativeTag ;
154
151
}
155
152
0 commit comments