@office-iss/react-native-win32 0.81.3 → 0.81.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +15901 -15880
- package/CHANGELOG.md +24 -15
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/Image.win32.js.flow +27 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +38 -35
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +51 -22
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +54 -24
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +36 -33
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +5 -5
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5 -5
- package/Libraries/Renderer/shims/ReactNativeTypes.js +23 -11
- package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +23 -12
- package/index.win32.js.flow +456 -0
- package/overrides.json +14 -2
- package/package.json +19 -19
- package/src-win/Libraries/Image/Image.win32.js.flow +27 -0
- package/src-win/index.win32.js.flow +456 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<918f2971ff54304721b755a22da3df6d>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -405,7 +405,7 @@ __DEV__ &&
|
|
|
405
405
|
prevPrepareStackTrace = error.indexOf("\n");
|
|
406
406
|
-1 !== prevPrepareStackTrace &&
|
|
407
407
|
(error = error.slice(prevPrepareStackTrace + 1));
|
|
408
|
-
prevPrepareStackTrace = error.indexOf("
|
|
408
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
409
409
|
-1 !== prevPrepareStackTrace &&
|
|
410
410
|
(prevPrepareStackTrace = error.lastIndexOf(
|
|
411
411
|
"\n",
|
|
@@ -16385,7 +16385,7 @@ __DEV__ &&
|
|
|
16385
16385
|
}
|
|
16386
16386
|
};
|
|
16387
16387
|
var callComponent = {
|
|
16388
|
-
|
|
16388
|
+
react_stack_bottom_frame: function (Component, props, secondArg) {
|
|
16389
16389
|
var wasRendering = isRendering;
|
|
16390
16390
|
isRendering = !0;
|
|
16391
16391
|
try {
|
|
@@ -16396,9 +16396,9 @@ __DEV__ &&
|
|
|
16396
16396
|
}
|
|
16397
16397
|
},
|
|
16398
16398
|
callComponentInDEV =
|
|
16399
|
-
callComponent
|
|
16399
|
+
callComponent.react_stack_bottom_frame.bind(callComponent),
|
|
16400
16400
|
callRender = {
|
|
16401
|
-
|
|
16401
|
+
react_stack_bottom_frame: function (instance) {
|
|
16402
16402
|
var wasRendering = isRendering;
|
|
16403
16403
|
isRendering = !0;
|
|
16404
16404
|
try {
|
|
@@ -16408,9 +16408,9 @@ __DEV__ &&
|
|
|
16408
16408
|
}
|
|
16409
16409
|
}
|
|
16410
16410
|
},
|
|
16411
|
-
callRenderInDEV = callRender
|
|
16411
|
+
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
|
|
16412
16412
|
callComponentDidMount = {
|
|
16413
|
-
|
|
16413
|
+
react_stack_bottom_frame: function (finishedWork, instance) {
|
|
16414
16414
|
try {
|
|
16415
16415
|
instance.componentDidMount();
|
|
16416
16416
|
} catch (error) {
|
|
@@ -16418,11 +16418,12 @@ __DEV__ &&
|
|
|
16418
16418
|
}
|
|
16419
16419
|
}
|
|
16420
16420
|
},
|
|
16421
|
-
callComponentDidMountInDEV =
|
|
16422
|
-
|
|
16423
|
-
|
|
16421
|
+
callComponentDidMountInDEV =
|
|
16422
|
+
callComponentDidMount.react_stack_bottom_frame.bind(
|
|
16423
|
+
callComponentDidMount
|
|
16424
|
+
),
|
|
16424
16425
|
callComponentDidUpdate = {
|
|
16425
|
-
|
|
16426
|
+
react_stack_bottom_frame: function (
|
|
16426
16427
|
finishedWork,
|
|
16427
16428
|
instance,
|
|
16428
16429
|
prevProps,
|
|
@@ -16436,22 +16437,24 @@ __DEV__ &&
|
|
|
16436
16437
|
}
|
|
16437
16438
|
}
|
|
16438
16439
|
},
|
|
16439
|
-
callComponentDidUpdateInDEV =
|
|
16440
|
-
|
|
16441
|
-
|
|
16440
|
+
callComponentDidUpdateInDEV =
|
|
16441
|
+
callComponentDidUpdate.react_stack_bottom_frame.bind(
|
|
16442
|
+
callComponentDidUpdate
|
|
16443
|
+
),
|
|
16442
16444
|
callComponentDidCatch = {
|
|
16443
|
-
|
|
16445
|
+
react_stack_bottom_frame: function (instance, errorInfo) {
|
|
16444
16446
|
var stack = errorInfo.stack;
|
|
16445
16447
|
instance.componentDidCatch(errorInfo.value, {
|
|
16446
16448
|
componentStack: null !== stack ? stack : ""
|
|
16447
16449
|
});
|
|
16448
16450
|
}
|
|
16449
16451
|
},
|
|
16450
|
-
callComponentDidCatchInDEV =
|
|
16451
|
-
|
|
16452
|
-
|
|
16452
|
+
callComponentDidCatchInDEV =
|
|
16453
|
+
callComponentDidCatch.react_stack_bottom_frame.bind(
|
|
16454
|
+
callComponentDidCatch
|
|
16455
|
+
),
|
|
16453
16456
|
callComponentWillUnmount = {
|
|
16454
|
-
|
|
16457
|
+
react_stack_bottom_frame: function (
|
|
16455
16458
|
current,
|
|
16456
16459
|
nearestMountedAncestor,
|
|
16457
16460
|
instance
|
|
@@ -16463,11 +16466,12 @@ __DEV__ &&
|
|
|
16463
16466
|
}
|
|
16464
16467
|
}
|
|
16465
16468
|
},
|
|
16466
|
-
callComponentWillUnmountInDEV =
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
+
callComponentWillUnmountInDEV =
|
|
16470
|
+
callComponentWillUnmount.react_stack_bottom_frame.bind(
|
|
16471
|
+
callComponentWillUnmount
|
|
16472
|
+
),
|
|
16469
16473
|
callCreate = {
|
|
16470
|
-
|
|
16474
|
+
react_stack_bottom_frame: function (effect) {
|
|
16471
16475
|
null != effect.resourceKind &&
|
|
16472
16476
|
console.error(
|
|
16473
16477
|
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
|
|
@@ -16479,9 +16483,9 @@ __DEV__ &&
|
|
|
16479
16483
|
return (effect.destroy = create);
|
|
16480
16484
|
}
|
|
16481
16485
|
},
|
|
16482
|
-
callCreateInDEV = callCreate
|
|
16486
|
+
callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate),
|
|
16483
16487
|
callDestroy = {
|
|
16484
|
-
|
|
16488
|
+
react_stack_bottom_frame: function (
|
|
16485
16489
|
current,
|
|
16486
16490
|
nearestMountedAncestor,
|
|
16487
16491
|
destroy
|
|
@@ -16493,16 +16497,15 @@ __DEV__ &&
|
|
|
16493
16497
|
}
|
|
16494
16498
|
}
|
|
16495
16499
|
},
|
|
16496
|
-
callDestroyInDEV =
|
|
16497
|
-
callDestroy["react-stack-bottom-frame"].bind(callDestroy),
|
|
16500
|
+
callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy),
|
|
16498
16501
|
callLazyInit = {
|
|
16499
|
-
|
|
16502
|
+
react_stack_bottom_frame: function (lazy) {
|
|
16500
16503
|
var init = lazy._init;
|
|
16501
16504
|
return init(lazy._payload);
|
|
16502
16505
|
}
|
|
16503
16506
|
},
|
|
16504
16507
|
callLazyInitInDEV =
|
|
16505
|
-
callLazyInit
|
|
16508
|
+
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
|
16506
16509
|
thenableState = null,
|
|
16507
16510
|
thenableIndexCounter = 0,
|
|
16508
16511
|
currentDebugInfo = null,
|
|
@@ -16868,11 +16871,11 @@ __DEV__ &&
|
|
|
16868
16871
|
shouldSuspendImpl = newShouldSuspendImpl;
|
|
16869
16872
|
};
|
|
16870
16873
|
var isomorphicReactPackageVersion = React.version;
|
|
16871
|
-
if ("19.1.
|
|
16874
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
16872
16875
|
throw Error(
|
|
16873
16876
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
16874
16877
|
(isomorphicReactPackageVersion +
|
|
16875
|
-
"\n - react-native-renderer: 19.1.
|
|
16878
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
16876
16879
|
);
|
|
16877
16880
|
if (
|
|
16878
16881
|
"function" !==
|
|
@@ -16898,10 +16901,10 @@ __DEV__ &&
|
|
|
16898
16901
|
(function () {
|
|
16899
16902
|
var internals = {
|
|
16900
16903
|
bundleType: 1,
|
|
16901
|
-
version: "19.1.
|
|
16904
|
+
version: "19.1.4",
|
|
16902
16905
|
rendererPackageName: "react-native-renderer",
|
|
16903
16906
|
currentDispatcherRef: ReactSharedInternals,
|
|
16904
|
-
reconcilerVersion: "19.1.
|
|
16907
|
+
reconcilerVersion: "19.1.4"
|
|
16905
16908
|
};
|
|
16906
16909
|
null !== extraDevToolsConfig &&
|
|
16907
16910
|
(internals.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<0129ab1b7de2122366e60b1d68de6e4a>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -10603,11 +10603,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
10603
10603
|
return lane;
|
|
10604
10604
|
}
|
|
10605
10605
|
var isomorphicReactPackageVersion = React.version;
|
|
10606
|
-
if ("19.1.
|
|
10606
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
10607
10607
|
throw Error(
|
|
10608
10608
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
10609
10609
|
(isomorphicReactPackageVersion +
|
|
10610
|
-
"\n - react-native-renderer: 19.1.
|
|
10610
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
10611
10611
|
);
|
|
10612
10612
|
if (
|
|
10613
10613
|
"function" !==
|
|
@@ -10656,10 +10656,10 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
10656
10656
|
var roots = new Map(),
|
|
10657
10657
|
internals$jscomp$inline_1269 = {
|
|
10658
10658
|
bundleType: 0,
|
|
10659
|
-
version: "19.1.
|
|
10659
|
+
version: "19.1.4",
|
|
10660
10660
|
rendererPackageName: "react-native-renderer",
|
|
10661
10661
|
currentDispatcherRef: ReactSharedInternals,
|
|
10662
|
-
reconcilerVersion: "19.1.
|
|
10662
|
+
reconcilerVersion: "19.1.4"
|
|
10663
10663
|
};
|
|
10664
10664
|
null !== extraDevToolsConfig &&
|
|
10665
10665
|
(internals$jscomp$inline_1269.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<d09a614d44bd133ffd789d5236ba611a>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -11245,11 +11245,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
11245
11245
|
return lane;
|
|
11246
11246
|
}
|
|
11247
11247
|
var isomorphicReactPackageVersion = React.version;
|
|
11248
|
-
if ("19.1.
|
|
11248
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
11249
11249
|
throw Error(
|
|
11250
11250
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
11251
11251
|
(isomorphicReactPackageVersion +
|
|
11252
|
-
"\n - react-native-renderer: 19.1.
|
|
11252
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
11253
11253
|
);
|
|
11254
11254
|
if (
|
|
11255
11255
|
"function" !==
|
|
@@ -11298,10 +11298,10 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
11298
11298
|
var roots = new Map(),
|
|
11299
11299
|
internals$jscomp$inline_1362 = {
|
|
11300
11300
|
bundleType: 0,
|
|
11301
|
-
version: "19.1.
|
|
11301
|
+
version: "19.1.4",
|
|
11302
11302
|
rendererPackageName: "react-native-renderer",
|
|
11303
11303
|
currentDispatcherRef: ReactSharedInternals,
|
|
11304
|
-
reconcilerVersion: "19.1.
|
|
11304
|
+
reconcilerVersion: "19.1.4"
|
|
11305
11305
|
};
|
|
11306
11306
|
null !== extraDevToolsConfig &&
|
|
11307
11307
|
(internals$jscomp$inline_1362.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,9 +7,14 @@
|
|
|
7
7
|
* @noformat
|
|
8
8
|
* @nolint
|
|
9
9
|
* @flow strict
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<9564768e65343249f5e5ee5074826c7f>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import type {
|
|
14
|
+
Component as ReactComponent,
|
|
15
|
+
ElementRef,
|
|
16
|
+
ElementType,
|
|
17
|
+
} from 'react';
|
|
13
18
|
import type {
|
|
14
19
|
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
|
|
15
20
|
HostInstance as PublicInstance,
|
|
@@ -21,8 +26,6 @@ import type {
|
|
|
21
26
|
PublicTextInstance,
|
|
22
27
|
} from 'react-native';
|
|
23
28
|
|
|
24
|
-
import * as React from 'react';
|
|
25
|
-
|
|
26
29
|
export type AttributeType<T, V> =
|
|
27
30
|
| true
|
|
28
31
|
| $ReadOnly<{
|
|
@@ -35,7 +38,16 @@ export type AttributeType<T, V> =
|
|
|
35
38
|
export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
|
|
36
39
|
|
|
37
40
|
export type AttributeConfiguration = $ReadOnly<{
|
|
38
|
-
[propName: string]: AnyAttributeType
|
|
41
|
+
[propName: string]: AnyAttributeType,
|
|
42
|
+
style?: $ReadOnly<{
|
|
43
|
+
[propName: string]: AnyAttributeType,
|
|
44
|
+
...
|
|
45
|
+
}>,
|
|
46
|
+
...
|
|
47
|
+
}>;
|
|
48
|
+
|
|
49
|
+
export type PartialAttributeConfiguration = $ReadOnly<{
|
|
50
|
+
[propName: string]: AnyAttributeType,
|
|
39
51
|
style?: $ReadOnly<{
|
|
40
52
|
[propName: string]: AnyAttributeType,
|
|
41
53
|
...
|
|
@@ -75,7 +87,7 @@ export type PartialViewConfig = $ReadOnly<{
|
|
|
75
87
|
directEventTypes?: ViewConfig['directEventTypes'],
|
|
76
88
|
supportsRawText?: boolean,
|
|
77
89
|
uiViewClassName: string,
|
|
78
|
-
validAttributes?:
|
|
90
|
+
validAttributes?: PartialAttributeConfiguration,
|
|
79
91
|
}>;
|
|
80
92
|
|
|
81
93
|
type InspectorDataProps = $ReadOnly<{
|
|
@@ -84,7 +96,7 @@ type InspectorDataProps = $ReadOnly<{
|
|
|
84
96
|
}>;
|
|
85
97
|
|
|
86
98
|
type InspectorDataGetter = (
|
|
87
|
-
<TElementType:
|
|
99
|
+
<TElementType: ElementType>(
|
|
88
100
|
componentOrHandle: React.ElementRef<TElementType> | number,
|
|
89
101
|
) => ?number,
|
|
90
102
|
) => $ReadOnly<{
|
|
@@ -128,7 +140,7 @@ export type RenderRootOptions = {
|
|
|
128
140
|
+componentStack?: ?string,
|
|
129
141
|
// $FlowFixMe[unclear-type] unknown props and state.
|
|
130
142
|
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
|
|
131
|
-
+errorBoundary?: ?
|
|
143
|
+
+errorBoundary?: ?ReactComponent<any, any>,
|
|
132
144
|
},
|
|
133
145
|
) => void,
|
|
134
146
|
onRecoverableError?: (
|
|
@@ -142,10 +154,10 @@ export type RenderRootOptions = {
|
|
|
142
154
|
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
|
143
155
|
*/
|
|
144
156
|
export type ReactNativeType = {
|
|
145
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
157
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
146
158
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
147
159
|
): ?PublicInstance,
|
|
148
|
-
findNodeHandle<TElementType:
|
|
160
|
+
findNodeHandle<TElementType: ElementType>(
|
|
149
161
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
150
162
|
): ?number,
|
|
151
163
|
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean,
|
|
@@ -171,10 +183,10 @@ export opaque type Node = mixed;
|
|
|
171
183
|
export opaque type InternalInstanceHandle = mixed;
|
|
172
184
|
|
|
173
185
|
export type ReactFabricType = {
|
|
174
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
186
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
175
187
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
176
188
|
): ?PublicInstance,
|
|
177
|
-
findNodeHandle<TElementType:
|
|
189
|
+
findNodeHandle<TElementType: ElementType>(
|
|
178
190
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
179
191
|
): ?number,
|
|
180
192
|
dispatchCommand(
|
|
@@ -7,11 +7,15 @@
|
|
|
7
7
|
* @noformat
|
|
8
8
|
* @nolint
|
|
9
9
|
* @flow strict
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<9564768e65343249f5e5ee5074826c7f>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type {
|
|
14
|
-
|
|
14
|
+
Component as ReactComponent,
|
|
15
|
+
ElementRef,
|
|
16
|
+
ElementType,
|
|
17
|
+
} from 'react';
|
|
18
|
+
import type {
|
|
15
19
|
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
|
|
16
20
|
HostInstance as PublicInstance,
|
|
17
21
|
// $FlowFixMe[missing-export] TODO(@rubennorte) - Missing export from react-native
|
|
@@ -25,8 +29,6 @@ import type {
|
|
|
25
29
|
PublicTextInstance,
|
|
26
30
|
} from 'react-native';
|
|
27
31
|
|
|
28
|
-
import * as React from 'react';
|
|
29
|
-
|
|
30
32
|
export type AttributeType<T, V> =
|
|
31
33
|
| true
|
|
32
34
|
| $ReadOnly<{
|
|
@@ -39,7 +41,16 @@ export type AttributeType<T, V> =
|
|
|
39
41
|
export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
|
|
40
42
|
|
|
41
43
|
export type AttributeConfiguration = $ReadOnly<{
|
|
42
|
-
[propName: string]: AnyAttributeType
|
|
44
|
+
[propName: string]: AnyAttributeType,
|
|
45
|
+
style?: $ReadOnly<{
|
|
46
|
+
[propName: string]: AnyAttributeType,
|
|
47
|
+
...
|
|
48
|
+
}>,
|
|
49
|
+
...
|
|
50
|
+
}>;
|
|
51
|
+
|
|
52
|
+
export type PartialAttributeConfiguration = $ReadOnly<{
|
|
53
|
+
[propName: string]: AnyAttributeType,
|
|
43
54
|
style?: $ReadOnly<{
|
|
44
55
|
[propName: string]: AnyAttributeType,
|
|
45
56
|
...
|
|
@@ -79,7 +90,7 @@ export type PartialViewConfig = $ReadOnly<{
|
|
|
79
90
|
directEventTypes?: ViewConfig['directEventTypes'],
|
|
80
91
|
supportsRawText?: boolean,
|
|
81
92
|
uiViewClassName: string,
|
|
82
|
-
validAttributes?:
|
|
93
|
+
validAttributes?: PartialAttributeConfiguration,
|
|
83
94
|
}>;
|
|
84
95
|
|
|
85
96
|
type InspectorDataProps = $ReadOnly<{
|
|
@@ -88,7 +99,7 @@ type InspectorDataProps = $ReadOnly<{
|
|
|
88
99
|
}>;
|
|
89
100
|
|
|
90
101
|
type InspectorDataGetter = (
|
|
91
|
-
<TElementType:
|
|
102
|
+
<TElementType: ElementType>(
|
|
92
103
|
componentOrHandle: React.ElementRef<TElementType> | number,
|
|
93
104
|
) => ?number,
|
|
94
105
|
) => $ReadOnly<{
|
|
@@ -132,7 +143,7 @@ export type RenderRootOptions = {
|
|
|
132
143
|
+componentStack?: ?string,
|
|
133
144
|
// $FlowFixMe[unclear-type] unknown props and state.
|
|
134
145
|
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
|
|
135
|
-
+errorBoundary?: ?
|
|
146
|
+
+errorBoundary?: ?ReactComponent<any, any>,
|
|
136
147
|
},
|
|
137
148
|
) => void,
|
|
138
149
|
onRecoverableError?: (
|
|
@@ -146,10 +157,10 @@ export type RenderRootOptions = {
|
|
|
146
157
|
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
|
147
158
|
*/
|
|
148
159
|
export type ReactNativeType = {
|
|
149
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
160
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
150
161
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
151
162
|
): ?PublicInstance,
|
|
152
|
-
findNodeHandle<TElementType:
|
|
163
|
+
findNodeHandle<TElementType: ElementType>(
|
|
153
164
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
154
165
|
): ?number,
|
|
155
166
|
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean,
|
|
@@ -175,10 +186,10 @@ export opaque type Node = mixed;
|
|
|
175
186
|
export opaque type InternalInstanceHandle = mixed;
|
|
176
187
|
|
|
177
188
|
export type ReactFabricType = {
|
|
178
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
189
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
179
190
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
180
191
|
): ?PublicInstance,
|
|
181
|
-
findNodeHandle<TElementType:
|
|
192
|
+
findNodeHandle<TElementType: ElementType>(
|
|
182
193
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
183
194
|
): ?number,
|
|
184
195
|
dispatchCommand(
|