7
7
* @noformat
8
8
* @flow strict
9
9
* @nolint
10
- * @generated SignedSource<<f33ee88cc50bb00a16d281dce9952e21 >>
10
+ * @generated SignedSource<<c41f61379973354629ee7bf55ba92541 >>
11
11
*/
12
12
13
13
import type { ElementRef , ElementType , Element , AbstractComponent } from 'react' ;
@@ -176,6 +176,25 @@ export type TouchedViewDataAtPoint = $ReadOnly<{
176
176
...InspectorData ,
177
177
} > ;
178
178
179
+ export type RenderRootOptions = {
180
+ onUncaughtError ?: (
181
+ error : mixed ,
182
+ errorInfo : { + componentStack ?: ?string } ,
183
+ ) => void ,
184
+ onCaughtError ?: (
185
+ error : mixed ,
186
+ errorInfo : {
187
+ + componentStack ?: ?string ,
188
+ // $FlowFixMe[unclear-type] unknown props and state.
189
+ + errorBoundary ?: ?React$Component < any , any > ,
190
+ } ,
191
+ ) => void ,
192
+ onRecoverableError ?: (
193
+ error : mixed ,
194
+ errorInfo : { + componentStack ?: ?string } ,
195
+ ) => void ,
196
+ } ;
197
+
179
198
/**
180
199
* Flat ReactNative renderer bundles are too big for Flow to parse efficiently.
181
200
* Provide minimal Flow typing for the high-level RN API and call it a day.
@@ -204,6 +223,7 @@ export type ReactNativeType = {
204
223
element : Element < ElementType > ,
205
224
containerTag : number ,
206
225
callback : ?( ) => void ,
226
+ options : ?RenderRootOptions ,
207
227
) : ?ElementRef < ElementType> ,
208
228
unmountComponentAtNode ( containerTag : number ) : void ,
209
229
unmountComponentAtNodeAndRemoveContainer ( containerTag : number ) : void ,
@@ -217,24 +237,6 @@ export opaque type InternalInstanceHandle = mixed;
217
237
type PublicInstance = mixed ;
218
238
type PublicTextInstance = mixed ;
219
239
220
- export type RenderRootOptions = {
221
- onUncaughtError ?: (
222
- error : mixed ,
223
- errorInfo : { + componentStack ?: ?string } ,
224
- ) => void ,
225
- onCaughtError ?: (
226
- error : mixed ,
227
- errorInfo : {
228
- + componentStack ?: ?string ,
229
- + errorBoundary ?: ?React$Component < any , any > ,
230
- } ,
231
- ) => void ,
232
- onRecoverableError ?: (
233
- error : mixed ,
234
- errorInfo : { + componentStack ?: ?string } ,
235
- ) => void ,
236
- } ;
237
-
238
240
export type ReactFabricType = {
239
241
findHostInstance_DEPRECATED < TElementType : ElementType > (
240
242
componentOrHandle: ?(ElementRef< TElementType > | number),
0 commit comments