7
7
* @noformat
8
8
* @nolint
9
9
* @flow strict
10
- * @generated SignedSource<<2264e9839602043a41f1e13913b43b0f >>
10
+ * @generated SignedSource<<4216c04f5a8c40a833b0146588fab5fa >>
11
11
*/
12
12
13
- import type {
14
- Component as ReactComponent ,
15
- ElementRef ,
16
- ElementType ,
17
- MixedElement ,
18
- } from 'react' ;
19
13
import type {
20
14
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
21
- MeasureOnSuccessCallback ,
15
+ HostInstance as PublicInstance ,
22
16
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
23
- PublicInstance ,
17
+ MeasureOnSuccessCallback ,
24
18
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
25
19
PublicRootInstance ,
26
20
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
27
21
PublicTextInstance ,
28
- } from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ;
22
+ } from 'react-native' ;
23
+
24
+ import * as React from 'react' ;
29
25
30
26
export type AttributeType < T , V > =
31
27
| true
@@ -97,8 +93,8 @@ type InspectorDataProps = $ReadOnly<{
97
93
} > ;
98
94
99
95
type InspectorDataGetter = (
100
- < TElementType : ElementType > (
101
- componentOrHandle: ElementRef< TElementType > | number,
96
+ < TElementType : React . ElementType > (
97
+ componentOrHandle: React. ElementRef< TElementType > | number,
102
98
) => ?number ,
103
99
) => $ReadOnly < {
104
100
measure : ( callback : MeasureOnSuccessCallback ) => void ,
@@ -141,7 +137,7 @@ export type RenderRootOptions = {
141
137
+ componentStack ?: ?string ,
142
138
// $FlowFixMe[unclear-type] unknown props and state.
143
139
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
144
- + errorBoundary ?: ?ReactComponent < any , any > ,
140
+ + errorBoundary ?: ?React . Component < any , any > ,
145
141
} ,
146
142
) => void ,
147
143
onRecoverableError ?: (
@@ -155,11 +151,11 @@ export type RenderRootOptions = {
155
151
* Provide minimal Flow typing for the high-level RN API and call it a day.
156
152
*/
157
153
export type ReactNativeType = {
158
- findHostInstance_DEPRECATED< TElementType : ElementType > (
159
- componentOrHandle : ?( ElementRef < TElementType > | number ) ,
154
+ findHostInstance_DEPRECATED< TElementType : React . ElementType > (
155
+ componentOrHandle : ?( React . ElementRef < TElementType > | number ) ,
160
156
) : ?PublicInstance ,
161
- findNodeHandle < TElementType : ElementType > (
162
- componentOrHandle : ?( ElementRef < TElementType > | number ) ,
157
+ findNodeHandle < TElementType : React . ElementType > (
158
+ componentOrHandle : ?( React . ElementRef < TElementType > | number ) ,
163
159
) : ?number ,
164
160
isChildPublicInstance ( parent : PublicInstance , child : PublicInstance ) : boolean ,
165
161
dispatchCommand (
@@ -169,11 +165,11 @@ export type ReactNativeType = {
169
165
) : void ,
170
166
sendAccessibilityEvent ( handle : PublicInstance , eventType : string ) : void ,
171
167
render (
172
- element : MixedElement ,
168
+ element : React . MixedElement ,
173
169
containerTag : number ,
174
170
callback : ?( ) => void ,
175
171
options : ?RenderRootOptions ,
176
- ) : ?ElementRef < ElementType> ,
172
+ ) : ?React . ElementRef < React . ElementType> ,
177
173
unmountComponentAtNode ( containerTag : number ) : void ,
178
174
unmountComponentAtNodeAndRemoveContainer ( containerTag : number ) : void ,
179
175
+ unstable_batchedUpdates : < T > (fn: (T) => void , bookkeeping : T ) => void ,
@@ -184,11 +180,11 @@ export opaque type Node = mixed;
184
180
export opaque type InternalInstanceHandle = mixed ;
185
181
186
182
export type ReactFabricType = {
187
- findHostInstance_DEPRECATED < TElementType : ElementType > (
188
- componentOrHandle: ?(ElementRef< TElementType > | number),
183
+ findHostInstance_DEPRECATED < TElementType : React . ElementType > (
184
+ componentOrHandle : ?( React . ElementRef < TElementType > | number ) ,
189
185
) : ?PublicInstance,
190
- findNodeHandle< TElementType : ElementType > (
191
- componentOrHandle: ?(ElementRef< TElementType > | number),
186
+ findNodeHandle < TElementType : React . ElementType > (
187
+ componentOrHandle : ?( React . ElementRef < TElementType > | number ) ,
192
188
) : ?number,
193
189
dispatchCommand (
194
190
handle : PublicInstance ,
@@ -198,12 +194,12 @@ export type ReactFabricType = {
198
194
isChildPublicInstance ( parent : PublicInstance , child : PublicInstance ) : boolean ,
199
195
sendAccessibilityEvent ( handle : PublicInstance , eventType : string ) : void ,
200
196
render (
201
- element: MixedElement,
197
+ element : React . MixedElement ,
202
198
containerTag : number ,
203
199
callback : ?( ) => void ,
204
200
concurrentRoot : ?boolean ,
205
201
options : ?RenderRootOptions ,
206
- ) : ?ElementRef < ElementType > ,
202
+ ) : ?React . ElementRef < React . ElementType> ,
207
203
unmountComponentAtNode ( containerTag : number ) : void ,
208
204
getNodeFromInternalInstanceHandle (
209
205
internalInstanceHandle : InternalInstanceHandle ,
0 commit comments