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.
Files changed (85) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/React/Base/RCTVersion.m +1 -1
  3. package/ReactAndroid/gradle.properties +1 -1
  4. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  5. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  6. package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.cpp +10 -7
  7. package/ReactCommon/jsinspector-modern/tracing/HostTracingProfile.h +14 -1
  8. package/ReactCommon/jsinspector-modern/tracing/TraceRecordingState.h +11 -0
  9. package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
  10. package/package.json +7 -7
  11. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +7 -7
  12. package/types_generated/Libraries/Alert/Alert.d.ts +6 -6
  13. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +2 -2
  14. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +3 -3
  15. package/types_generated/Libraries/Animated/animations/Animation.d.ts +7 -7
  16. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +5 -5
  17. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +49 -49
  18. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +13 -13
  19. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +3 -3
  20. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +3 -3
  21. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +4 -4
  22. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +2 -2
  23. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +9 -9
  24. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +3 -3
  25. package/types_generated/Libraries/Blob/BlobTypes.d.ts +4 -4
  26. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +3 -3
  27. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -3
  28. package/types_generated/Libraries/Components/Button.d.ts +5 -5
  29. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +3 -3
  30. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +5 -5
  31. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +6 -6
  32. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +3 -3
  33. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +3 -3
  34. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +20 -20
  35. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +4 -4
  36. package/types_generated/Libraries/Components/Switch/Switch.d.ts +3 -3
  37. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +5 -5
  38. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +4 -4
  39. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +3 -3
  40. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +2 -2
  41. package/types_generated/Libraries/Components/View/View.d.ts +3 -3
  42. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +12 -12
  43. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +10 -10
  44. package/types_generated/Libraries/Core/ExtendedError.d.ts +10 -10
  45. package/types_generated/Libraries/Image/ImageProps.d.ts +13 -13
  46. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +5 -5
  47. package/types_generated/Libraries/Lists/FlatList.d.ts +13 -13
  48. package/types_generated/Libraries/Lists/SectionList.d.ts +4 -4
  49. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +2 -2
  50. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +2 -2
  51. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +2 -2
  52. package/types_generated/Libraries/Modal/Modal.d.ts +4 -4
  53. package/types_generated/Libraries/Network/FormData.d.ts +5 -5
  54. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +4 -4
  55. package/types_generated/Libraries/Pressability/Pressability.d.ts +5 -5
  56. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +11 -11
  57. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +4 -4
  58. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +5 -5
  59. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +34 -34
  60. package/types_generated/Libraries/Share/Share.d.ts +11 -11
  61. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +3 -3
  62. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +182 -182
  63. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +3 -3
  64. package/types_generated/Libraries/Text/Text.d.ts +3 -3
  65. package/types_generated/Libraries/Text/TextProps.d.ts +5 -5
  66. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +2 -2
  67. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +8 -8
  68. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +6 -6
  69. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +5 -5
  70. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +2 -2
  71. package/types_generated/src/private/assets/AssetRegistry.d.ts +2 -2
  72. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +5 -5
  73. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +3 -3
  74. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +3 -3
  75. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +7 -7
  76. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +5 -5
  77. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +5 -5
  78. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +7 -7
  79. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +5 -5
  80. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +8 -8
  81. package/types_generated/src/private/types/HostComponent.d.ts +3 -3
  82. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +2 -2
  83. package/types_generated/src/private/webapis/dom/events/Event.d.ts +4 -4
  84. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +8 -8
  85. 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<<b3b35ccf34137c8b1fafd02a35fcd5df>>
7
+ * @generated SignedSource<<5e6d99a36b2246293c804a64735a274e>>
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/Animated/nodes/AnimatedInterpolation.js
@@ -19,17 +19,17 @@ export type InterpolationConfigSupportedOutputType = number | string | NativeCol
19
19
  export type InterpolationConfigType<OutputT extends InterpolationConfigSupportedOutputType> = Readonly<Omit<AnimatedNodeConfig, keyof {
20
20
  inputRange: ReadonlyArray<number>;
21
21
  outputRange: ReadonlyArray<OutputT>;
22
- easing?: (input: number) => number;
23
- extrapolate?: ExtrapolateType;
24
- extrapolateLeft?: ExtrapolateType;
25
- extrapolateRight?: ExtrapolateType;
22
+ easing?: ((input: number) => number) | undefined;
23
+ extrapolate?: ExtrapolateType | undefined;
24
+ extrapolateLeft?: ExtrapolateType | undefined;
25
+ extrapolateRight?: ExtrapolateType | undefined;
26
26
  }> & {
27
27
  inputRange: ReadonlyArray<number>;
28
28
  outputRange: ReadonlyArray<OutputT>;
29
- easing?: (input: number) => number;
30
- extrapolate?: ExtrapolateType;
31
- extrapolateLeft?: ExtrapolateType;
32
- extrapolateRight?: ExtrapolateType;
29
+ easing?: ((input: number) => number) | undefined;
30
+ extrapolate?: ExtrapolateType | undefined;
31
+ extrapolateLeft?: ExtrapolateType | undefined;
32
+ extrapolateRight?: ExtrapolateType | undefined;
33
33
  }>;
34
34
  declare class AnimatedInterpolation<OutputT extends InterpolationConfigSupportedOutputType> extends AnimatedWithChildren {
35
35
  constructor(parent: AnimatedNode, config: InterpolationConfigType<OutputT>);
@@ -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<<854c54cbd3b8c8d3413f802fa9418f00>>
7
+ * @generated SignedSource<<b46ff8e288affad36b700e9f2e58fcd4>>
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/Animated/nodes/AnimatedNode.js
11
11
  */
12
12
 
13
13
  export type AnimatedNodeConfig = Readonly<{
14
- debugID?: string;
15
- unstable_disableBatchingForNativeCreate?: boolean;
14
+ debugID?: string | undefined;
15
+ unstable_disableBatchingForNativeCreate?: boolean | undefined;
16
16
  }>;
17
17
  declare class AnimatedNode {
18
18
  constructor(config?: null | undefined | Readonly<Omit<AnimatedNodeConfig, keyof {}> & {}>);
@@ -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<<fd12f1eebc08f6db0b59666ff85cc992>>
7
+ * @generated SignedSource<<254c64e9872955e09f2a80e0ebec56c5>>
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/Blob/BlobTypes.js
@@ -17,9 +17,9 @@ export type BlobData = {
17
17
  blobId: string;
18
18
  offset: number;
19
19
  size: number;
20
- name?: string;
21
- type?: string;
22
- lastModified?: number;
20
+ name?: string | undefined;
21
+ type?: string | undefined;
22
+ lastModified?: number | undefined;
23
23
  };
24
24
  export type BlobOptions = {
25
25
  type: 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<<1c8694715098f7f80b1550713c6cef24>>
7
+ * @generated SignedSource<<eb152e149877b18ef1cc5f2a17d1c431>>
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/AccessibilityInfo/AccessibilityInfo.js
@@ -202,8 +202,8 @@ declare const AccessibilityInfo: {
202
202
  * (iOS only).
203
203
  */
204
204
  announceForAccessibilityWithOptions(announcement: string, options: {
205
- queue?: boolean;
206
- priority?: "low" | "default" | "high";
205
+ queue?: boolean | undefined;
206
+ priority?: "low" | "default" | "high" | undefined;
207
207
  }): void;
208
208
  /**
209
209
  * Get the recommended timeout in milliseconds the user needs, as specified
@@ -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<<f20b1c27ec7b8ebedcf053f97c255bed>>
7
+ * @generated SignedSource<<393938e22e93a4660c43e442fb86ed29>>
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/ActivityIndicator/ActivityIndicator.js
@@ -89,9 +89,9 @@ export interface ActivityIndicatorProps extends Readonly<Omit<ViewProps, keyof A
89
89
  readonly size?: IndicatorSize | undefined;
90
90
  }
91
91
  declare const ActivityIndicator: (props: Omit<ActivityIndicatorProps, keyof {
92
- ref?: React.Ref<ActivityIndicatorInstance>;
92
+ ref?: React.Ref<ActivityIndicatorInstance> | undefined;
93
93
  }> & {
94
- ref?: React.Ref<ActivityIndicatorInstance>;
94
+ ref?: React.Ref<ActivityIndicatorInstance> | undefined;
95
95
  }) => React.ReactNode;
96
96
  /**
97
97
  * Displays a circular loading indicator.
@@ -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<<7041831bd905b1fd9bedea46d297366d>>
7
+ * @generated SignedSource<<80ba02728e26f878345896f247e607f2>>
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/Button.js
@@ -25,7 +25,7 @@ export interface ButtonProps {
25
25
  /**
26
26
  * Handler called when the user taps the button.
27
27
  */
28
- readonly onPress?: (event?: GestureResponderEvent) => unknown;
28
+ readonly onPress?: ((event?: GestureResponderEvent) => unknown) | undefined;
29
29
  /**
30
30
  * If `true`, doesn't play system sound on touch.
31
31
  *
@@ -123,7 +123,7 @@ export interface ButtonProps {
123
123
  * Alias for `accessibilityState`.
124
124
  */
125
125
  readonly "aria-busy"?: boolean | undefined;
126
- readonly "aria-checked"?: (boolean | undefined) | "mixed";
126
+ readonly "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
127
127
  readonly "aria-disabled"?: boolean | undefined;
128
128
  readonly "aria-expanded"?: boolean | undefined;
129
129
  readonly "aria-selected"?: boolean | undefined;
@@ -140,9 +140,9 @@ export interface ButtonProps {
140
140
  declare const NativeTouchable: typeof TouchableNativeFeedback | typeof TouchableOpacity;
141
141
  export type ButtonInstance = React.ComponentRef<typeof NativeTouchable>;
142
142
  declare const Button: (props: Omit<ButtonProps, keyof {
143
- ref?: React.Ref<ButtonInstance>;
143
+ ref?: React.Ref<ButtonInstance> | undefined;
144
144
  }> & {
145
- ref?: React.Ref<ButtonInstance>;
145
+ ref?: React.Ref<ButtonInstance> | undefined;
146
146
  }) => React.ReactNode;
147
147
  /**
148
148
  * A basic button component that should render nicely on any platform. Supports a
@@ -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<<5269674e3d69e779e1868b36b8459ff1>>
7
+ * @generated SignedSource<<56acaea389704095c6b47f91b7e3b7ae>>
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/Keyboard/KeyboardAvoidingView.js
@@ -35,7 +35,7 @@ export interface KeyboardAvoidingViewProps extends Readonly<Omit<ViewProps, keyo
35
35
  *
36
36
  * @default `0`
37
37
  */
38
- keyboardVerticalOffset?: number;
38
+ keyboardVerticalOffset?: number | undefined;
39
39
  }>> {
40
40
  /**
41
41
  * Specify how to react to the presence of the keyboard.
@@ -57,7 +57,7 @@ export interface KeyboardAvoidingViewProps extends Readonly<Omit<ViewProps, keyo
57
57
  *
58
58
  * @default `0`
59
59
  */
60
- readonly keyboardVerticalOffset?: number;
60
+ readonly keyboardVerticalOffset?: number | undefined;
61
61
  }
62
62
  type KeyboardAvoidingViewState = {
63
63
  bottom: number;
@@ -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<<a0e21fed40513dfcdad5c47ed317d731>>
7
+ * @generated SignedSource<<b3949b0b9971b5c83e64aa90b3e74615>>
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/Pressable/Pressable.js
@@ -32,7 +32,7 @@ type PressableBaseProps = Readonly<{
32
32
  * Either children or a function that receives a boolean reflecting whether
33
33
  * the component is currently pressed.
34
34
  */
35
- children?: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode);
35
+ children?: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode) | undefined;
36
36
  /**
37
37
  * Duration to wait after hover in before calling `onHoverIn`.
38
38
  *
@@ -110,7 +110,7 @@ type PressableBaseProps = Readonly<{
110
110
  * Either view styles or a function that receives a boolean reflecting whether
111
111
  * the component is currently pressed and returns view styles.
112
112
  */
113
- style?: ViewStyleProp | ((state: PressableStateCallbackType) => ViewStyleProp);
113
+ style?: ViewStyleProp | ((state: PressableStateCallbackType) => ViewStyleProp) | undefined;
114
114
  /**
115
115
  * Identifier used to find this view in tests.
116
116
  */
@@ -146,9 +146,9 @@ export interface PressableProps extends Readonly<Omit<Omit<ViewProps, "onMouseEn
146
146
  * @see https://reactnative.dev/docs/pressable
147
147
  */
148
148
  declare const $$Pressable: (props: Omit<PressableProps, keyof {
149
- ref?: React.Ref<PressableInstance>;
149
+ ref?: React.Ref<PressableInstance> | undefined;
150
150
  }> & {
151
- ref?: React.Ref<PressableInstance>;
151
+ ref?: React.Ref<PressableInstance> | undefined;
152
152
  }) => React.ReactNode;
153
153
  declare type $$Pressable = typeof $$Pressable;
154
154
  export default $$Pressable;
@@ -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<<92efce69dca1861d7bdfc6d9c5ee3a62>>
7
+ * @generated SignedSource<<b47dc0eab37a5f23dd11abfced0f2e67>>
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/Pressable/useAndroidRippleForView.js
@@ -23,11 +23,11 @@ type NativeBackgroundProp = Readonly<{
23
23
  alpha: number | undefined;
24
24
  }>;
25
25
  export type PressableAndroidRippleConfig = {
26
- color?: ColorValue;
27
- borderless?: boolean;
28
- radius?: number;
29
- foreground?: boolean;
30
- alpha?: number;
26
+ color?: ColorValue | undefined;
27
+ borderless?: boolean | undefined;
28
+ radius?: number | undefined;
29
+ foreground?: boolean | undefined;
30
+ alpha?: number | undefined;
31
31
  };
32
32
  /**
33
33
  * Provides the event handlers and props for configuring the ripple effect on
@@ -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<<b9e34ec29ffb5be134271fdb584b7cb5>>
7
+ * @generated SignedSource<<2575ecb472f31c07c4274a7736b7fd34>>
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/ProgressBarAndroid/ProgressBarAndroid.js
@@ -17,9 +17,9 @@ export type ProgressBarAndroidInstance = HostInstance;
17
17
  export type { ProgressBarAndroidProps };
18
18
  type Omit<T, K> = T extends any ? Pick<T, Exclude<keyof T, K>> : T;
19
19
  declare let ProgressBarAndroid: (props: Omit<Omit<ProgressBarAndroidProps, never>, keyof {
20
- ref?: React.Ref<ProgressBarAndroidInstance>;
20
+ ref?: React.Ref<ProgressBarAndroidInstance> | undefined;
21
21
  }> & {
22
- ref?: React.Ref<ProgressBarAndroidInstance>;
22
+ ref?: React.Ref<ProgressBarAndroidInstance> | undefined;
23
23
  }) => React.ReactNode;
24
24
  /**
25
25
  * ProgressBarAndroid has been extracted from react-native core and will be removed in a future release.
@@ -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<<92e6372bd88934a4f4e6b140b48e5ad2>>
7
+ * @generated SignedSource<<35cc044bc2499f77db7be9466054eac1>>
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/SafeAreaView/SafeAreaView.js
@@ -15,9 +15,9 @@ import type { ViewProps } from "../View/ViewPropTypes";
15
15
  import * as React from "react";
16
16
  export type SafeAreaViewInstance = HostInstance;
17
17
  declare const SafeAreaView: (props: Omit<ViewProps, keyof {
18
- ref?: React.Ref<SafeAreaViewInstance>;
18
+ ref?: React.Ref<SafeAreaViewInstance> | undefined;
19
19
  }> & {
20
- ref?: React.Ref<SafeAreaViewInstance>;
20
+ ref?: React.Ref<SafeAreaViewInstance> | undefined;
21
21
  }) => React.ReactNode;
22
22
  /**
23
23
  * Renders content within the safe area boundaries of a device. Currently only applicable to iOS devices with iOS version 11 or later. Automatically applies padding to reflect the portion of the view not covered by navigation bars, tab bars, toolbars, and other ancestor views.
@@ -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<<696bb81728b8be8e326ea682c7140f93>>
7
+ * @generated SignedSource<<3220e238eadca54ae7f57c65cefff83f>>
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/ScrollView/ScrollView.js
@@ -23,9 +23,9 @@ import View from "../View/View";
23
23
  import ScrollViewContext from "./ScrollViewContext";
24
24
  import * as React from "react";
25
25
  export interface ScrollViewScrollToOptions {
26
- x?: number;
27
- y?: number;
28
- animated?: boolean;
26
+ x?: number | undefined;
27
+ y?: number | undefined;
28
+ animated?: boolean | undefined;
29
29
  }
30
30
  export interface ScrollViewImperativeMethods {
31
31
  /**
@@ -72,7 +72,7 @@ export interface ScrollViewImperativeMethods {
72
72
  y: number;
73
73
  width: number;
74
74
  height: number;
75
- animated?: boolean;
75
+ animated?: boolean | undefined;
76
76
  }, animated?: boolean) => void;
77
77
  readonly scrollResponderScrollNativeHandleToKeyboard: (nodeHandle: number | HostInstance, additionalOffset?: number, preventNegativeScrollOffset?: boolean) => void;
78
78
  }
@@ -238,7 +238,7 @@ export type ScrollViewPropsIOS = Readonly<{
238
238
  * Fires when the scroll view scrolls to top after the status bar has been tapped
239
239
  * @platform ios
240
240
  */
241
- onScrollToTop?: (event: ScrollEvent) => void;
241
+ onScrollToTop?: ((event: ScrollEvent) => void) | undefined;
242
242
  /**
243
243
  * When true, shows a horizontal scroll indicator.
244
244
  *
@@ -323,7 +323,7 @@ export type ScrollViewPropsAndroid = Readonly<{
323
323
  fadingEdgeLength?: (number | undefined) | {
324
324
  start: number;
325
325
  end: number;
326
- };
326
+ } | undefined;
327
327
  /**
328
328
  * When false, the ScrollView will not automatically scroll to a focused child when
329
329
  * the child requests focus. This can be useful when you want to control the scroll
@@ -337,11 +337,11 @@ export type ScrollViewPropsAndroid = Readonly<{
337
337
  type StickyHeaderComponentType = (props: Omit<ScrollViewStickyHeaderProps, keyof {
338
338
  ref?: React.Ref<Readonly<{
339
339
  setNextHeaderY: ($$PARAM_0$$: number) => void;
340
- }>>;
340
+ }>> | undefined;
341
341
  }> & {
342
342
  ref?: React.Ref<Readonly<{
343
343
  setNextHeaderY: ($$PARAM_0$$: number) => void;
344
- }>>;
344
+ }>> | undefined;
345
345
  }) => React.ReactNode;
346
346
  type ScrollViewBaseProps = Readonly<{
347
347
  /**
@@ -503,11 +503,11 @@ type ScrollViewBaseProps = Readonly<{
503
503
  * It's implemented using onLayout handler attached to the content container
504
504
  * which this ScrollView renders.
505
505
  */
506
- onContentSizeChange?: (contentWidth: number, contentHeight: number) => void;
507
- onKeyboardDidShow?: (event: KeyboardEvent) => void;
508
- onKeyboardDidHide?: (event: KeyboardEvent) => void;
509
- onKeyboardWillShow?: (event: KeyboardEvent) => void;
510
- onKeyboardWillHide?: (event: KeyboardEvent) => void;
506
+ onContentSizeChange?: ((contentWidth: number, contentHeight: number) => void) | undefined;
507
+ onKeyboardDidShow?: ((event: KeyboardEvent) => void) | undefined;
508
+ onKeyboardDidHide?: ((event: KeyboardEvent) => void) | undefined;
509
+ onKeyboardWillShow?: ((event: KeyboardEvent) => void) | undefined;
510
+ onKeyboardWillHide?: ((event: KeyboardEvent) => void) | undefined;
511
511
  /**
512
512
  * When true, the scroll view stops on multiples of the scroll view's size
513
513
  * when scrolling. This can be used for horizontal pagination.
@@ -558,7 +558,7 @@ type ScrollViewBaseProps = Readonly<{
558
558
  * You may need to set this if your sticky header uses custom transforms (eg. translation),
559
559
  * for example when you want your list to have an animated hidable header.
560
560
  */
561
- StickyHeaderComponent?: StickyHeaderComponentType;
561
+ StickyHeaderComponent?: StickyHeaderComponentType | undefined;
562
562
  /**
563
563
  * When `snapToInterval` is set, `snapToAlignment` defines the relationship
564
564
  * of the snapping to the scroll view.
@@ -622,27 +622,27 @@ type ScrollViewBaseProps = Readonly<{
622
622
  * See [RefreshControl](docs/refreshcontrol.html).
623
623
  */
624
624
  refreshControl?: React.JSX.Element | undefined;
625
- children?: React.ReactNode;
625
+ children?: React.ReactNode | undefined;
626
626
  /**
627
627
  * A ref to the inner View element of the ScrollView. This should be used
628
628
  * instead of calling `getInnerViewRef`.
629
629
  */
630
- innerViewRef?: React.Ref<InnerViewInstance>;
630
+ innerViewRef?: React.Ref<InnerViewInstance> | undefined;
631
631
  /**
632
632
  * A ref to the Native ScrollView component. This ref can be used to call
633
633
  * all of ScrollView's public methods, in addition to native methods like
634
634
  * measure, measureLayout, etc.
635
635
  */
636
- scrollViewRef?: React.Ref<ScrollViewInstance>;
636
+ scrollViewRef?: React.Ref<ScrollViewInstance> | undefined;
637
637
  }>;
638
638
  export interface ScrollViewProps extends Readonly<Omit<Omit<ViewProps, "experimental_accessibilityOrder">, keyof ScrollViewPropsIOS | keyof ScrollViewPropsAndroid | keyof ScrollViewBaseProps | keyof {}> & Omit<ScrollViewPropsIOS, keyof ScrollViewPropsAndroid | keyof ScrollViewBaseProps | keyof {}> & Omit<ScrollViewPropsAndroid, keyof ScrollViewBaseProps | keyof {}> & Omit<ScrollViewBaseProps, keyof {}>> {}
639
639
  export type ScrollViewComponentStatics = Readonly<{
640
640
  Context: typeof ScrollViewContext;
641
641
  }>;
642
642
  declare const ScrollViewWrapper: (props: Omit<ScrollViewProps, keyof {
643
- ref?: React.Ref<ScrollViewInstance>;
643
+ ref?: React.Ref<ScrollViewInstance> | undefined;
644
644
  }> & {
645
- ref?: React.Ref<ScrollViewInstance>;
645
+ ref?: React.Ref<ScrollViewInstance> | undefined;
646
646
  }) => React.ReactNode;
647
647
  /**
648
648
  * Component that wraps platform ScrollView while providing
@@ -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<<f8dd9c647cf100daf63bfef26d661794>>
7
+ * @generated SignedSource<<2a2474f9ffeb2f444daca4629c021f62>>
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/ScrollView/ScrollViewStickyHeader.js
@@ -14,7 +14,7 @@ import type { LayoutChangeEvent } from "../../Types/CoreEventTypes";
14
14
  import Animated from "../../Animated/Animated";
15
15
  import * as React from "react";
16
16
  export type ScrollViewStickyHeaderProps = Readonly<{
17
- children?: React.ReactNode;
17
+ children?: React.ReactNode | undefined;
18
18
  nextHeaderLayoutY: number | undefined;
19
19
  onLayout: (event: LayoutChangeEvent) => void;
20
20
  scrollAnimatedValue: Animated.Value;
@@ -27,9 +27,9 @@ interface Instance extends React.ElementRef<typeof Animated.View> {
27
27
  readonly setNextHeaderY: ($$PARAM_0$$: number) => void;
28
28
  }
29
29
  declare const ScrollViewStickyHeader: (props: Omit<ScrollViewStickyHeaderProps, keyof {
30
- ref?: React.Ref<Instance>;
30
+ ref?: React.Ref<Instance> | undefined;
31
31
  }> & {
32
- ref?: React.Ref<Instance>;
32
+ ref?: React.Ref<Instance> | undefined;
33
33
  }) => React.ReactNode;
34
34
  declare const $$ScrollViewStickyHeader: typeof ScrollViewStickyHeader;
35
35
  declare type $$ScrollViewStickyHeader = typeof $$ScrollViewStickyHeader;
@@ -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<<bfa57a38ebe93e536c8d7dbcab9e989b>>
7
+ * @generated SignedSource<<0f5be0c1b1d28d6ab7269a6dc3837f16>>
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/Switch/Switch.js
@@ -89,9 +89,9 @@ type SwitchPropsBase = {
89
89
  };
90
90
  export interface SwitchProps extends Readonly<Omit<ViewProps, keyof SwitchPropsIOS | keyof SwitchPropsBase | keyof {}> & Omit<SwitchPropsIOS, keyof SwitchPropsBase | keyof {}> & Omit<SwitchPropsBase, keyof {}>> {}
91
91
  declare const Switch: (props: Omit<SwitchProps, keyof {
92
- ref?: React.Ref<SwitchInstance>;
92
+ ref?: React.Ref<SwitchInstance> | undefined;
93
93
  }> & {
94
- ref?: React.Ref<SwitchInstance>;
94
+ ref?: React.Ref<SwitchInstance> | undefined;
95
95
  }) => React.ReactNode;
96
96
  /**
97
97
  * Renders a boolean input.
@@ -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<<ef00d13911dc74bb40e3864ed09bf568>>
7
+ * @generated SignedSource<<e76da1ca16908ea6b928737f5e0deb9f>>
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/TextInput/TextInput.flow.js
@@ -26,7 +26,7 @@ type TextInputChangeEventData = Readonly<{
26
26
  eventCount: number;
27
27
  target: number;
28
28
  text: string;
29
- selection?: Selection;
29
+ selection?: Selection | undefined;
30
30
  }>;
31
31
  export type TextInputChangeEvent = NativeSyntheticEvent<TextInputChangeEventData>;
32
32
  export type TextInputEvent = NativeSyntheticEvent<Readonly<{
@@ -165,7 +165,7 @@ export type TextInputIOSProps = Readonly<{
165
165
  *
166
166
  * @platform ios
167
167
  */
168
- dataDetectorTypes?: (DataDetectorTypesType | undefined) | ReadonlyArray<DataDetectorTypesType>;
168
+ dataDetectorTypes?: (DataDetectorTypesType | undefined) | ReadonlyArray<DataDetectorTypesType> | undefined;
169
169
  /**
170
170
  * If `true`, the keyboard disables the return key when there is no text and
171
171
  * automatically enables it when there is text. The default value is `false`.
@@ -1003,9 +1003,9 @@ export type TextInputInstance = _TextInputInstance;
1003
1003
  *
1004
1004
  */
1005
1005
  type InternalTextInput = (props: Omit<TextInputProps, keyof {
1006
- ref?: React.Ref<TextInputInstance>;
1006
+ ref?: React.Ref<TextInputInstance> | undefined;
1007
1007
  }> & {
1008
- ref?: React.Ref<TextInputInstance>;
1008
+ ref?: React.Ref<TextInputInstance> | undefined;
1009
1009
  }) => React.ReactNode;
1010
1010
  export type TextInputComponentStatics = Readonly<{
1011
1011
  State: Readonly<{
@@ -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<<f2ffa23b9975e27630dbafe2ab9415c9>>
7
+ * @generated SignedSource<<4f5fb7e0c2a5f73c27c45bcaf5c20a79>>
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/Touchable/TouchableHighlight.js
@@ -50,13 +50,13 @@ type TouchableHighlightBaseProps = Readonly<{
50
50
  */
51
51
  onHideUnderlay?: (() => void) | undefined;
52
52
  testOnly_pressed?: boolean | undefined;
53
- hostRef?: React.Ref<TouchableHighlightInstance>;
53
+ hostRef?: React.Ref<TouchableHighlightInstance> | undefined;
54
54
  }>;
55
55
  export interface TouchableHighlightProps extends Readonly<Omit<TouchableWithoutFeedbackProps, keyof AndroidProps | keyof IOSProps | keyof TouchableHighlightBaseProps | keyof {}> & Omit<AndroidProps, keyof IOSProps | keyof TouchableHighlightBaseProps | keyof {}> & Omit<IOSProps, keyof TouchableHighlightBaseProps | keyof {}> & Omit<TouchableHighlightBaseProps, keyof {}>> {}
56
56
  declare const TouchableHighlight: (props: Omit<Readonly<Omit<TouchableHighlightProps, "hostRef">>, keyof {
57
- ref?: React.Ref<TouchableHighlightInstance>;
57
+ ref?: React.Ref<TouchableHighlightInstance> | undefined;
58
58
  }> & {
59
- ref?: React.Ref<TouchableHighlightInstance>;
59
+ ref?: React.Ref<TouchableHighlightInstance> | undefined;
60
60
  }) => React.ReactNode;
61
61
  /**
62
62
  * A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view.
@@ -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<<d124d9d677201266acb353fb848dabc1>>
7
+ * @generated SignedSource<<718ed73e0b1eab2e35343086923c2147>>
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/Touchable/TouchableOpacity.js
@@ -67,9 +67,9 @@ type TouchableOpacityBaseProps = Readonly<{
67
67
  }>;
68
68
  export type TouchableOpacityProps = Readonly<Omit<TouchableWithoutFeedbackProps, keyof TouchableOpacityTVProps | keyof TouchableOpacityBaseProps | keyof {}> & Omit<TouchableOpacityTVProps, keyof TouchableOpacityBaseProps | keyof {}> & Omit<TouchableOpacityBaseProps, keyof {}> & {}>;
69
69
  declare const Touchable: (props: Omit<TouchableOpacityProps, keyof {
70
- ref?: React.Ref<TouchableOpacityInstance>;
70
+ ref?: React.Ref<TouchableOpacityInstance> | undefined;
71
71
  }> & {
72
- ref?: React.Ref<TouchableOpacityInstance>;
72
+ ref?: React.Ref<TouchableOpacityInstance> | undefined;
73
73
  }) => React.ReactNode;
74
74
  /**
75
75
  * A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, dimming it.
@@ -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<<9cc3d72adbf5441ccdbd95ece746b9e4>>
7
+ * @generated SignedSource<<6dd92b33183a5399571c89785c3972a2>>
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/Touchable/TouchableWithoutFeedback.js
@@ -59,7 +59,7 @@ export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithout
59
59
  /**
60
60
  * Used to reference react managed views from native code.
61
61
  */
62
- readonly id?: string;
62
+ readonly id?: string | undefined;
63
63
  readonly importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
64
64
  readonly nativeID?: string | undefined;
65
65
  readonly onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | 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<<1ece8cef2686961c5e58b6cbbc58b2ea>>
7
+ * @generated SignedSource<<33574444f945fa242c6d98221d5933d0>>
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/View.js
@@ -15,9 +15,9 @@ import type { ViewProps } from "./ViewPropTypes";
15
15
  import * as React from "react";
16
16
  export type ViewInstance = HostInstance;
17
17
  declare function View(props: Omit<ViewProps, keyof {
18
- ref?: React.Ref<ViewInstance>;
18
+ ref?: React.Ref<ViewInstance> | undefined;
19
19
  }> & {
20
- ref?: React.Ref<ViewInstance>;
20
+ ref?: React.Ref<ViewInstance> | undefined;
21
21
  }): React.ReactNode;
22
22
  /**
23
23
  * The most fundamental component for building a UI. `View` is a container that