react-native 0.87.0-rc.2 → 0.87.0-rc.3
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/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.cpp +10 -7
- package/ReactCommon/jsinspector-modern/tracing/HostTracingProfile.h +14 -1
- package/ReactCommon/jsinspector-modern/tracing/TraceRecordingState.h +11 -0
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
- package/package.json +7 -7
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +7 -7
- package/types_generated/Libraries/Alert/Alert.d.ts +6 -6
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +2 -2
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +3 -3
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +7 -7
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +5 -5
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +49 -49
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +13 -13
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +3 -3
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +3 -3
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +4 -4
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +2 -2
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +9 -9
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +3 -3
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +4 -4
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +3 -3
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -3
- package/types_generated/Libraries/Components/Button.d.ts +5 -5
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +3 -3
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +5 -5
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +6 -6
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +3 -3
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +3 -3
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +20 -20
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +4 -4
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +3 -3
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +5 -5
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +4 -4
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +3 -3
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +2 -2
- package/types_generated/Libraries/Components/View/View.d.ts +3 -3
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +12 -12
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +10 -10
- package/types_generated/Libraries/Core/ExtendedError.d.ts +10 -10
- package/types_generated/Libraries/Image/ImageProps.d.ts +13 -13
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +5 -5
- package/types_generated/Libraries/Lists/FlatList.d.ts +13 -13
- package/types_generated/Libraries/Lists/SectionList.d.ts +4 -4
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +2 -2
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +2 -2
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +2 -2
- package/types_generated/Libraries/Modal/Modal.d.ts +4 -4
- package/types_generated/Libraries/Network/FormData.d.ts +5 -5
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +4 -4
- package/types_generated/Libraries/Pressability/Pressability.d.ts +5 -5
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +11 -11
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +4 -4
- package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +5 -5
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +34 -34
- package/types_generated/Libraries/Share/Share.d.ts +11 -11
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +3 -3
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +182 -182
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +3 -3
- package/types_generated/Libraries/Text/Text.d.ts +3 -3
- package/types_generated/Libraries/Text/TextProps.d.ts +5 -5
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +2 -2
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +8 -8
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +6 -6
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +5 -5
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +2 -2
- package/types_generated/src/private/assets/AssetRegistry.d.ts +2 -2
- package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +5 -5
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +3 -3
- package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +3 -3
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +7 -7
- package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +5 -5
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +5 -5
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +7 -7
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +5 -5
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +8 -8
- package/types_generated/src/private/types/HostComponent.d.ts +3 -3
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +2 -2
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +4 -4
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +8 -8
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +3 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<e77931775062e476f4c32a701598f107>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Components/View/ViewAccessibility.js
|
|
@@ -38,7 +38,7 @@ export type AccessibilityActionName =
|
|
|
38
38
|
*/ | "escape";
|
|
39
39
|
export type AccessibilityActionInfo = Readonly<{
|
|
40
40
|
name: AccessibilityActionName | string;
|
|
41
|
-
label?: string;
|
|
41
|
+
label?: string | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
export type AccessibilityActionEvent = NativeSyntheticEvent<Readonly<{
|
|
44
44
|
actionName: string;
|
|
@@ -55,7 +55,7 @@ export type AccessibilityState = {
|
|
|
55
55
|
/**
|
|
56
56
|
* For items like Checkboxes and Toggle switches, reports their state to accessible tools
|
|
57
57
|
*/
|
|
58
|
-
checked?: (boolean | undefined) | "mixed";
|
|
58
|
+
checked?: (boolean | undefined) | "mixed" | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* When present, informs accessible tools if the element is busy
|
|
61
61
|
*/
|
|
@@ -69,19 +69,19 @@ export type AccessibilityValue = Readonly<{
|
|
|
69
69
|
/**
|
|
70
70
|
* The minimum value of this component's range. (should be an integer)
|
|
71
71
|
*/
|
|
72
|
-
min?: number;
|
|
72
|
+
min?: number | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The maximum value of this component's range. (should be an integer)
|
|
75
75
|
*/
|
|
76
|
-
max?: number;
|
|
76
|
+
max?: number | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* The current value of this component's range. (should be an integer)
|
|
79
79
|
*/
|
|
80
|
-
now?: number;
|
|
80
|
+
now?: number | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* A textual description of this component's value. (will override minimum, current, and maximum if set)
|
|
83
83
|
*/
|
|
84
|
-
text?: string;
|
|
84
|
+
text?: string | undefined;
|
|
85
85
|
}>;
|
|
86
86
|
export type AccessibilityPropsAndroid = Readonly<{
|
|
87
87
|
/**
|
|
@@ -90,7 +90,7 @@ export type AccessibilityPropsAndroid = Readonly<{
|
|
|
90
90
|
*
|
|
91
91
|
* @platform android
|
|
92
92
|
*/
|
|
93
|
-
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
|
|
93
|
+
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined) | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props,
|
|
96
96
|
* the text is read aloud. The value should should match the nativeID of the related element.
|
|
@@ -138,7 +138,7 @@ export type AccessibilityPropsAndroid = Readonly<{
|
|
|
138
138
|
*
|
|
139
139
|
* @platform android
|
|
140
140
|
*/
|
|
141
|
-
screenReaderFocusable?: boolean;
|
|
141
|
+
screenReaderFocusable?: boolean | undefined;
|
|
142
142
|
}>;
|
|
143
143
|
export type AccessibilityPropsIOS = Readonly<{
|
|
144
144
|
/**
|
|
@@ -269,7 +269,7 @@ export type AccessibilityProps = Readonly<Omit<AccessibilityPropsAndroid, keyof
|
|
|
269
269
|
* see https://reactnative.dev/docs/accessibility#accessibilitystate
|
|
270
270
|
*/
|
|
271
271
|
"aria-busy"?: boolean | undefined;
|
|
272
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
272
|
+
"aria-checked"?: (boolean | undefined) | "mixed" | undefined;
|
|
273
273
|
"aria-disabled"?: boolean | undefined;
|
|
274
274
|
"aria-expanded"?: boolean | undefined;
|
|
275
275
|
"aria-selected"?: boolean | undefined;
|
|
@@ -341,7 +341,7 @@ export type AccessibilityProps = Readonly<Omit<AccessibilityPropsAndroid, keyof
|
|
|
341
341
|
* see https://reactnative.dev/docs/accessibility#accessibilitystate
|
|
342
342
|
*/
|
|
343
343
|
"aria-busy"?: boolean | undefined;
|
|
344
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
344
|
+
"aria-checked"?: (boolean | undefined) | "mixed" | undefined;
|
|
345
345
|
"aria-disabled"?: boolean | undefined;
|
|
346
346
|
"aria-expanded"?: boolean | undefined;
|
|
347
347
|
"aria-selected"?: boolean | undefined;
|
|
@@ -413,7 +413,7 @@ export type AccessibilityProps = Readonly<Omit<AccessibilityPropsAndroid, keyof
|
|
|
413
413
|
* see https://reactnative.dev/docs/accessibility#accessibilitystate
|
|
414
414
|
*/
|
|
415
415
|
"aria-busy"?: boolean | undefined;
|
|
416
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
416
|
+
"aria-checked"?: (boolean | undefined) | "mixed" | undefined;
|
|
417
417
|
"aria-disabled"?: boolean | undefined;
|
|
418
418
|
"aria-expanded"?: boolean | undefined;
|
|
419
419
|
"aria-selected"?: boolean | undefined;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<459ad1ac92ec7d2bd5a645dff882e93c>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Components/View/ViewPropTypes.js
|
|
@@ -321,7 +321,7 @@ export type ViewPropsAndroid = Readonly<{
|
|
|
321
321
|
*
|
|
322
322
|
* @platform android
|
|
323
323
|
*/
|
|
324
|
-
tabIndex?: 0 | -1;
|
|
324
|
+
tabIndex?: 0 | -1 | undefined;
|
|
325
325
|
/**
|
|
326
326
|
* The action to perform when this `View` is clicked on by a non-touch click, eg. enter key on a hardware keyboard.
|
|
327
327
|
*
|
|
@@ -336,38 +336,38 @@ export type TVViewPropsIOS = Readonly<{
|
|
|
336
336
|
*
|
|
337
337
|
* @platform ios
|
|
338
338
|
*/
|
|
339
|
-
isTVSelectable?: boolean;
|
|
339
|
+
isTVSelectable?: boolean | undefined;
|
|
340
340
|
/**
|
|
341
341
|
* *(Apple TV only)* May be set to true to force the Apple TV focus engine to move focus to this view.
|
|
342
342
|
*
|
|
343
343
|
* @platform ios
|
|
344
344
|
* @deprecated Use `focusable` instead
|
|
345
345
|
*/
|
|
346
|
-
hasTVPreferredFocus?: boolean;
|
|
346
|
+
hasTVPreferredFocus?: boolean | undefined;
|
|
347
347
|
/**
|
|
348
348
|
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
|
|
349
349
|
*
|
|
350
350
|
* @platform ios
|
|
351
351
|
*/
|
|
352
|
-
tvParallaxShiftDistanceX?: number;
|
|
352
|
+
tvParallaxShiftDistanceX?: number | undefined;
|
|
353
353
|
/**
|
|
354
354
|
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
|
|
355
355
|
*
|
|
356
356
|
* @platform ios
|
|
357
357
|
*/
|
|
358
|
-
tvParallaxShiftDistanceY?: number;
|
|
358
|
+
tvParallaxShiftDistanceY?: number | undefined;
|
|
359
359
|
/**
|
|
360
360
|
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 0.05.
|
|
361
361
|
*
|
|
362
362
|
* @platform ios
|
|
363
363
|
*/
|
|
364
|
-
tvParallaxTiltAngle?: number;
|
|
364
|
+
tvParallaxTiltAngle?: number | undefined;
|
|
365
365
|
/**
|
|
366
366
|
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 1.0.
|
|
367
367
|
*
|
|
368
368
|
* @platform ios
|
|
369
369
|
*/
|
|
370
|
-
tvParallaxMagnification?: number;
|
|
370
|
+
tvParallaxMagnification?: number | undefined;
|
|
371
371
|
}>;
|
|
372
372
|
export type ViewPropsIOS = Readonly<{
|
|
373
373
|
/**
|
|
@@ -389,7 +389,7 @@ export type ViewPropsIOS = Readonly<{
|
|
|
389
389
|
shouldRasterizeIOS?: boolean | undefined;
|
|
390
390
|
}>;
|
|
391
391
|
type ViewBaseProps = Readonly<{
|
|
392
|
-
children?: React.ReactNode;
|
|
392
|
+
children?: React.ReactNode | undefined;
|
|
393
393
|
style?: ViewStyleProp | undefined;
|
|
394
394
|
/**
|
|
395
395
|
* Views that are only used to layout their children or otherwise don't draw
|
|
@@ -415,7 +415,7 @@ type ViewBaseProps = Readonly<{
|
|
|
415
415
|
*
|
|
416
416
|
* See https://reactnative.dev/docs/view#id
|
|
417
417
|
*/
|
|
418
|
-
id?: string;
|
|
418
|
+
id?: string | undefined;
|
|
419
419
|
/**
|
|
420
420
|
* Used to locate this view in end-to-end tests.
|
|
421
421
|
*
|
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<bb8ab95ab80e958dc759e0477fa89e2d>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Core/ExtendedError.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
export type ExtendedError = Error & {
|
|
14
|
-
jsEngine?: string;
|
|
15
|
-
preventSymbolication?: boolean;
|
|
16
|
-
componentStack?: string;
|
|
17
|
-
isComponentError?: boolean;
|
|
18
|
-
type?: string;
|
|
14
|
+
jsEngine?: string | undefined;
|
|
15
|
+
preventSymbolication?: boolean | undefined;
|
|
16
|
+
componentStack?: string | undefined;
|
|
17
|
+
isComponentError?: boolean | undefined;
|
|
18
|
+
type?: string | undefined;
|
|
19
19
|
cause?: {
|
|
20
20
|
name: string;
|
|
21
21
|
message: string;
|
|
22
|
-
stackElements?: ReadonlyArray<Object
|
|
23
|
-
stackSymbols?: ReadonlyArray<Object
|
|
24
|
-
stackReturnAddresses?: ReadonlyArray<Object
|
|
25
|
-
};
|
|
22
|
+
stackElements?: ReadonlyArray<Object> | undefined;
|
|
23
|
+
stackSymbols?: ReadonlyArray<Object> | undefined;
|
|
24
|
+
stackReturnAddresses?: ReadonlyArray<Object> | undefined;
|
|
25
|
+
} | undefined;
|
|
26
26
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<c37e4c04ec1c964faaa072452e43f430>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Image/ImageProps.js
|
|
@@ -174,11 +174,11 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
174
174
|
/**
|
|
175
175
|
* Height of the image component.
|
|
176
176
|
*/
|
|
177
|
-
height?: number;
|
|
177
|
+
height?: number | undefined;
|
|
178
178
|
/**
|
|
179
179
|
* Width of the image component.
|
|
180
180
|
*/
|
|
181
|
-
width?: number;
|
|
181
|
+
width?: number | undefined;
|
|
182
182
|
/**
|
|
183
183
|
* Invoked on load error.
|
|
184
184
|
*/
|
|
@@ -250,7 +250,7 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
250
250
|
/**
|
|
251
251
|
* Changes the color of all non-transparent pixels to the `tintColor`.
|
|
252
252
|
*/
|
|
253
|
-
tintColor?: ColorValue;
|
|
253
|
+
tintColor?: ColorValue | undefined;
|
|
254
254
|
/**
|
|
255
255
|
* A remote URL string for the image resource. Takes precedence over
|
|
256
256
|
* `source`.
|
|
@@ -261,7 +261,7 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
261
261
|
* descriptors.
|
|
262
262
|
*/
|
|
263
263
|
srcSet?: string | undefined;
|
|
264
|
-
children?: never;
|
|
264
|
+
children?: never | undefined;
|
|
265
265
|
}>> {
|
|
266
266
|
/**
|
|
267
267
|
* When `true`, indicates the image is an accessibility element.
|
|
@@ -317,11 +317,11 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
317
317
|
/**
|
|
318
318
|
* Height of the image component.
|
|
319
319
|
*/
|
|
320
|
-
readonly height?: number;
|
|
320
|
+
readonly height?: number | undefined;
|
|
321
321
|
/**
|
|
322
322
|
* Width of the image component.
|
|
323
323
|
*/
|
|
324
|
-
readonly width?: number;
|
|
324
|
+
readonly width?: number | undefined;
|
|
325
325
|
/**
|
|
326
326
|
* Invoked on load error.
|
|
327
327
|
*/
|
|
@@ -393,7 +393,7 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
393
393
|
/**
|
|
394
394
|
* Changes the color of all non-transparent pixels to the `tintColor`.
|
|
395
395
|
*/
|
|
396
|
-
readonly tintColor?: ColorValue;
|
|
396
|
+
readonly tintColor?: ColorValue | undefined;
|
|
397
397
|
/**
|
|
398
398
|
* A remote URL string for the image resource. Takes precedence over
|
|
399
399
|
* `source`.
|
|
@@ -404,7 +404,7 @@ export interface ImagePropsBase extends Readonly<Omit<Omit<ViewProps, "style">,
|
|
|
404
404
|
* descriptors.
|
|
405
405
|
*/
|
|
406
406
|
readonly srcSet?: string | undefined;
|
|
407
|
-
readonly children?: never;
|
|
407
|
+
readonly children?: never | undefined;
|
|
408
408
|
}
|
|
409
409
|
export type ImageProps = Readonly<Omit<ImagePropsIOS, keyof ImagePropsAndroid | keyof ImagePropsBase | keyof {
|
|
410
410
|
/**
|
|
@@ -428,7 +428,7 @@ export type ImageProps = Readonly<Omit<ImagePropsIOS, keyof ImagePropsAndroid |
|
|
|
428
428
|
style?: ImageStyleProp | undefined;
|
|
429
429
|
}>;
|
|
430
430
|
export interface ImageBackgroundProps extends Readonly<Omit<ImageProps, keyof {
|
|
431
|
-
children?: React.ReactNode;
|
|
431
|
+
children?: React.ReactNode | undefined;
|
|
432
432
|
/**
|
|
433
433
|
* Style applied to the outer `View` wrapper. Accepts `ViewStyle` props
|
|
434
434
|
* rather than `ImageStyle` props.
|
|
@@ -442,9 +442,9 @@ export interface ImageBackgroundProps extends Readonly<Omit<ImageProps, keyof {
|
|
|
442
442
|
* A ref setter assigned the element node of the inner `Image` component
|
|
443
443
|
* when mounted.
|
|
444
444
|
*/
|
|
445
|
-
imageRef?: React.Ref<React.ComponentRef<ImageType
|
|
445
|
+
imageRef?: React.Ref<React.ComponentRef<ImageType>> | undefined;
|
|
446
446
|
}>> {
|
|
447
|
-
readonly children?: React.ReactNode;
|
|
447
|
+
readonly children?: React.ReactNode | undefined;
|
|
448
448
|
/**
|
|
449
449
|
* Style applied to the outer `View` wrapper. Accepts `ViewStyle` props
|
|
450
450
|
* rather than `ImageStyle` props.
|
|
@@ -458,5 +458,5 @@ export interface ImageBackgroundProps extends Readonly<Omit<ImageProps, keyof {
|
|
|
458
458
|
* A ref setter assigned the element node of the inner `Image` component
|
|
459
459
|
* when mounted.
|
|
460
460
|
*/
|
|
461
|
-
readonly imageRef?: React.Ref<React.ComponentRef<ImageType
|
|
461
|
+
readonly imageRef?: React.Ref<React.ComponentRef<ImageType>> | undefined;
|
|
462
462
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<f7bbf6cd29a66b7256b815ff38ab71b9>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Image/ImageTypes.flow.js
|
|
@@ -47,15 +47,15 @@ type ImageComponentStaticsAndroid = Readonly<Omit<ImageComponentStaticsIOS, keyo
|
|
|
47
47
|
abortPrefetch(requestId: number): void;
|
|
48
48
|
}>;
|
|
49
49
|
export type AbstractImageAndroid = (props: Omit<ImagePropsType, keyof {
|
|
50
|
-
ref?: React.Ref<HostInstance
|
|
50
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
51
51
|
}> & {
|
|
52
|
-
ref?: React.Ref<HostInstance
|
|
52
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
53
53
|
}) => React.ReactNode;
|
|
54
54
|
export type ImageAndroid = AbstractImageAndroid & ImageComponentStaticsAndroid;
|
|
55
55
|
export type AbstractImageIOS = (props: Omit<ImagePropsType, keyof {
|
|
56
|
-
ref?: React.Ref<HostInstance
|
|
56
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
57
57
|
}> & {
|
|
58
|
-
ref?: React.Ref<HostInstance
|
|
58
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
59
59
|
}) => React.ReactNode;
|
|
60
60
|
export type ImageIOS = AbstractImageIOS & ImageComponentStaticsIOS;
|
|
61
61
|
export type ImageType = ImageIOS | ImageAndroid;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<7840530f995ac0cfb5fc6747b8da542b>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Lists/FlatList.js
|
|
@@ -53,13 +53,13 @@ type OptionalFlatListProps<ItemT> = {
|
|
|
53
53
|
/**
|
|
54
54
|
* Optional custom style for multi-item rows generated when numColumns > 1.
|
|
55
55
|
*/
|
|
56
|
-
columnWrapperStyle?: ViewStyleProp;
|
|
56
|
+
columnWrapperStyle?: ViewStyleProp | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* A marker property for telling the list to re-render (since it implements `PureComponent`). If
|
|
59
59
|
* any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the
|
|
60
60
|
* `data` prop, stick it here and treat it immutably.
|
|
61
61
|
*/
|
|
62
|
-
extraData?: any;
|
|
62
|
+
extraData?: any | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* `getItemLayout` is an optional optimizations that let us skip measurement of dynamic content if
|
|
65
65
|
* you know the height of items a priori. `getItemLayout` is the most efficient, and is easy to
|
|
@@ -73,11 +73,11 @@ type OptionalFlatListProps<ItemT> = {
|
|
|
73
73
|
* Remember to include separator length (height or width) in your offset calculation if you
|
|
74
74
|
* specify `ItemSeparatorComponent`.
|
|
75
75
|
*/
|
|
76
|
-
getItemLayout?: (data: Readonly<ArrayLike<ItemT>> | undefined, index: number) => {
|
|
76
|
+
getItemLayout?: ((data: Readonly<ArrayLike<ItemT>> | undefined, index: number) => {
|
|
77
77
|
length: number;
|
|
78
78
|
offset: number;
|
|
79
79
|
index: number;
|
|
80
|
-
};
|
|
80
|
+
}) | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* If true, renders items next to each other horizontally instead of stacked vertically.
|
|
83
83
|
*/
|
|
@@ -111,7 +111,7 @@ type OptionalFlatListProps<ItemT> = {
|
|
|
111
111
|
*
|
|
112
112
|
* The default value is 1.
|
|
113
113
|
*/
|
|
114
|
-
numColumns?: number;
|
|
114
|
+
numColumns?: number | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* Note: may have bugs (missing content) in some circumstances - use at your own risk.
|
|
117
117
|
*
|
|
@@ -119,18 +119,18 @@ type OptionalFlatListProps<ItemT> = {
|
|
|
119
119
|
*
|
|
120
120
|
* The default value is true for Android.
|
|
121
121
|
*/
|
|
122
|
-
removeClippedSubviews?: boolean;
|
|
122
|
+
removeClippedSubviews?: boolean | undefined;
|
|
123
123
|
/**
|
|
124
124
|
* See `ScrollView` for flow type and further documentation.
|
|
125
125
|
*/
|
|
126
126
|
fadingEdgeLength?: (number | undefined) | {
|
|
127
127
|
start: number;
|
|
128
128
|
end: number;
|
|
129
|
-
};
|
|
129
|
+
} | undefined;
|
|
130
130
|
/**
|
|
131
131
|
* Enable an optimization to memoize the item renderer to prevent unnecessary rerenders.
|
|
132
132
|
*/
|
|
133
|
-
strictMode?: boolean;
|
|
133
|
+
strictMode?: boolean | undefined;
|
|
134
134
|
};
|
|
135
135
|
type FlatListBaseProps<ItemT> = Omit<RequiredFlatListProps<ItemT>, keyof OptionalFlatListProps<ItemT> | keyof {}> & Omit<OptionalFlatListProps<ItemT>, keyof {}> & {};
|
|
136
136
|
export interface FlatListProps<ItemT> extends Readonly<Omit<Omit<VirtualizedListProps, "data" | "getItem" | "getItemCount" | "getItemLayout" | "renderItem" | "keyExtractor">, keyof FlatListBaseProps<ItemT> | keyof {}> & Omit<FlatListBaseProps<ItemT>, keyof {}>> {}
|
|
@@ -260,8 +260,8 @@ declare class FlatList<ItemT = any> extends React.PureComponent<FlatListProps<It
|
|
|
260
260
|
scrollToIndex(params: {
|
|
261
261
|
animated?: boolean | undefined;
|
|
262
262
|
index: number;
|
|
263
|
-
viewOffset?: number;
|
|
264
|
-
viewPosition?: number;
|
|
263
|
+
viewOffset?: number | undefined;
|
|
264
|
+
viewPosition?: number | undefined;
|
|
265
265
|
}): void;
|
|
266
266
|
/**
|
|
267
267
|
* Requires linear scan through data - use `scrollToIndex` instead if possible.
|
|
@@ -272,8 +272,8 @@ declare class FlatList<ItemT = any> extends React.PureComponent<FlatListProps<It
|
|
|
272
272
|
scrollToItem(params: {
|
|
273
273
|
animated?: boolean | undefined;
|
|
274
274
|
item: ItemT;
|
|
275
|
-
viewOffset?: number;
|
|
276
|
-
viewPosition?: number;
|
|
275
|
+
viewOffset?: number | undefined;
|
|
276
|
+
viewPosition?: number | undefined;
|
|
277
277
|
}): void;
|
|
278
278
|
/**
|
|
279
279
|
* Scroll to a specific content pixel offset in the list.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<2c372fe916ce64e5b1b6aa95db698ddf>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Lists/SectionList.js
|
|
@@ -42,13 +42,13 @@ type OptionalSectionListProps<ItemT, SectionT = DefaultSectionT> = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Default renderer for every item in every section. Can be over-ridden on a per-section basis.
|
|
44
44
|
*/
|
|
45
|
-
renderItem?: SectionListRenderItem<ItemT, SectionT
|
|
45
|
+
renderItem?: SectionListRenderItem<ItemT, SectionT> | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* A marker property for telling the list to re-render (since it implements `PureComponent`). If
|
|
48
48
|
* any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the
|
|
49
49
|
* `data` prop, stick it here and treat it immutably.
|
|
50
50
|
*/
|
|
51
|
-
extraData?: any;
|
|
51
|
+
extraData?: any | undefined;
|
|
52
52
|
/**
|
|
53
53
|
* How many items to render in the initial batch. This should be enough to fill the screen but not
|
|
54
54
|
* much more. Note these items will never be unmounted as part of the windowed rendering in order
|
|
@@ -78,7 +78,7 @@ type OptionalSectionListProps<ItemT, SectionT = DefaultSectionT> = {
|
|
|
78
78
|
*
|
|
79
79
|
* This may improve scroll performance for large lists.
|
|
80
80
|
*/
|
|
81
|
-
removeClippedSubviews?: boolean;
|
|
81
|
+
removeClippedSubviews?: boolean | undefined;
|
|
82
82
|
};
|
|
83
83
|
export interface SectionListProps<ItemT, SectionT = DefaultSectionT> extends Readonly<Omit<Omit<VirtualizedSectionListProps<ItemT, SectionT>, "getItem" | "getItemCount" | "renderItem" | "keyExtractor">, keyof RequiredSectionListProps<ItemT, SectionT> | keyof OptionalSectionListProps<ItemT, SectionT> | keyof {}> & Omit<RequiredSectionListProps<ItemT, SectionT>, keyof OptionalSectionListProps<ItemT, SectionT> | keyof {}> & Omit<OptionalSectionListProps<ItemT, SectionT>, keyof {}>> {}
|
|
84
84
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<25da192f7b8f8b837e25e28ce5000518>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/LogBox/Data/LogBoxData.js
|
|
@@ -22,7 +22,7 @@ export type LogData = Readonly<{
|
|
|
22
22
|
message: Message;
|
|
23
23
|
category: Category;
|
|
24
24
|
componentStack: Stack;
|
|
25
|
-
stack?: string;
|
|
25
|
+
stack?: string | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
export type Observer = ($$PARAM_0$$: Readonly<{
|
|
28
28
|
logs: LogBoxLogs;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<ae7d74da1108d7dc68c0c7819b1c5f1c>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/LogBox/Data/LogBoxLog.js
|
|
@@ -40,7 +40,7 @@ export type LogBoxLogData = Readonly<{
|
|
|
40
40
|
componentStack: Stack;
|
|
41
41
|
codeFrame?: CodeFrame | undefined;
|
|
42
42
|
isComponentError: boolean;
|
|
43
|
-
extraData?: unknown;
|
|
43
|
+
extraData?: unknown | undefined;
|
|
44
44
|
onNotificationPress?: (() => void) | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
declare class LogBoxLog {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<f51e81e4f223304a89189c14cc1f28ee>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/LogBox/Data/parseLogBoxLog.js
|
|
@@ -24,7 +24,7 @@ export type CodeFrame = Readonly<{
|
|
|
24
24
|
column: number;
|
|
25
25
|
} | undefined;
|
|
26
26
|
fileName: string;
|
|
27
|
-
collapse?: boolean;
|
|
27
|
+
collapse?: boolean | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export type Message = Readonly<{
|
|
30
30
|
content: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<f32cf1474c77deea920b5f94b6f5ca3c>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Modal/Modal.js
|
|
@@ -54,11 +54,11 @@ export interface ModalBaseProps {
|
|
|
54
54
|
* The backdrop color of the modal's container. Defaults to `white` if
|
|
55
55
|
* `transparent` is `false`. Ignored if `transparent` is `true`.
|
|
56
56
|
*/
|
|
57
|
-
backdropColor?: ColorValue;
|
|
57
|
+
backdropColor?: ColorValue | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* A ref to the native Modal component.
|
|
60
60
|
*/
|
|
61
|
-
modalRef?: React.Ref<ModalInstance
|
|
61
|
+
modalRef?: React.Ref<ModalInstance> | undefined;
|
|
62
62
|
}
|
|
63
63
|
export type ModalPropsIOS = {
|
|
64
64
|
/**
|
|
@@ -132,7 +132,7 @@ export type ModalPropsAndroid = {
|
|
|
132
132
|
};
|
|
133
133
|
export type ModalProps = Omit<ModalBaseProps, keyof ModalPropsIOS | keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsIOS, keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsAndroid, keyof ViewProps | keyof {}> & Omit<ViewProps, keyof {}> & {};
|
|
134
134
|
type ModalRefProps = Readonly<{
|
|
135
|
-
ref?: React.Ref<ModalInstance
|
|
135
|
+
ref?: React.Ref<ModalInstance> | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
declare function Wrapper($$PARAM_0$$: Omit<ModalRefProps, keyof ModalProps | keyof {}> & Omit<ModalProps, keyof {}> & {}): React.ReactNode;
|
|
138
138
|
/**
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<7d7b5927d28d9c8735610b07371e1607>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Network/FormData.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
type FormDataValue = string | {
|
|
14
|
-
name?: string;
|
|
15
|
-
type?: string;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
type?: string | undefined;
|
|
16
16
|
uri: string;
|
|
17
17
|
};
|
|
18
18
|
type Headers = {
|
|
@@ -24,8 +24,8 @@ type FormDataPart = {
|
|
|
24
24
|
} | {
|
|
25
25
|
uri: string;
|
|
26
26
|
headers: Headers;
|
|
27
|
-
name?: string;
|
|
28
|
-
type?: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
type?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<691f77a6fe276e14f15dd37227eaf2ae>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
export type Rationale = {
|
|
14
14
|
title: string;
|
|
15
15
|
message: string;
|
|
16
|
-
buttonPositive?: string;
|
|
17
|
-
buttonNegative?: string;
|
|
18
|
-
buttonNeutral?: string;
|
|
16
|
+
buttonPositive?: string | undefined;
|
|
17
|
+
buttonNegative?: string | undefined;
|
|
18
|
+
buttonNeutral?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
type PermissionsType = Readonly<{
|
|
21
21
|
READ_CALENDAR: "android.permission.READ_CALENDAR";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<05c3b91ff22fcaf753700e6ebe61c052>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Pressability/Pressability.js
|
|
@@ -106,10 +106,10 @@ export type EventHandlers = Readonly<{
|
|
|
106
106
|
onBlur: (event: BlurEvent) => void;
|
|
107
107
|
onClick: (event: GestureResponderEvent) => void;
|
|
108
108
|
onFocus: (event: FocusEvent) => void;
|
|
109
|
-
onMouseEnter?: (event: MouseEvent) => void;
|
|
110
|
-
onMouseLeave?: (event: MouseEvent) => void;
|
|
111
|
-
onPointerEnter?: (event: PointerEvent) => void;
|
|
112
|
-
onPointerLeave?: (event: PointerEvent) => void;
|
|
109
|
+
onMouseEnter?: ((event: MouseEvent) => void) | undefined;
|
|
110
|
+
onMouseLeave?: ((event: MouseEvent) => void) | undefined;
|
|
111
|
+
onPointerEnter?: ((event: PointerEvent) => void) | undefined;
|
|
112
|
+
onPointerLeave?: ((event: PointerEvent) => void) | undefined;
|
|
113
113
|
onResponderGrant: (event: GestureResponderEvent) => void | boolean;
|
|
114
114
|
onResponderMove: (event: GestureResponderEvent) => void;
|
|
115
115
|
onResponderRelease: (event: GestureResponderEvent) => void;
|