react-native-tvos 0.88.0-0rc2 → 0.88.1-0

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 (75) hide show
  1. package/Libraries/Animated/components/AnimatedScrollView.js +2 -2
  2. package/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm +26 -1
  3. package/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h +1 -1
  4. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -5
  5. package/Libraries/Components/Button.js +4 -2
  6. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
  7. package/Libraries/Components/Pressable/Pressable.js +4 -2
  8. package/Libraries/Components/TextInput/InputAccessoryView.js +8 -6
  9. package/Libraries/Components/TextInput/TextInput.js +5 -5
  10. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +85 -84
  11. package/Libraries/Components/View/ViewAccessibility.js +8 -4
  12. package/Libraries/Core/ReactNativeVersion.js +2 -2
  13. package/Libraries/Image/ImageProps.js +38 -18
  14. package/Libraries/LogBox/LogBoxNotificationContainer.js +7 -1
  15. package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +3 -3
  16. package/Libraries/Modal/Modal.js +4 -2
  17. package/Libraries/StyleSheet/StyleSheet.js +3 -9
  18. package/Libraries/StyleSheet/StyleSheet.js.flow +3 -9
  19. package/Libraries/StyleSheet/StyleSheetTypes.js +12 -9
  20. package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
  21. package/Libraries/Text/Text.js +6 -6
  22. package/React/Base/RCTStatusBarAppearance.h +30 -0
  23. package/React/Base/RCTStatusBarAppearance.mm +66 -0
  24. package/React/Base/RCTVersion.m +2 -2
  25. package/React/CoreModules/RCTStatusBarManager.mm +34 -9
  26. package/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm +13 -5
  27. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +30 -2
  28. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +9 -0
  29. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +8 -1
  30. package/ReactAndroid/gradle.properties +1 -1
  31. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  32. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +16 -2
  33. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.kt +4 -0
  34. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextDecorationStyle.kt +32 -4
  35. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +4 -0
  36. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +17 -12
  37. package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
  38. package/ReactApple/RCTSwiftUI/RCTSwiftUIContainerView.swift +4 -0
  39. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  40. package/ReactCommon/jsi/jsi/decorator.h +64 -0
  41. package/ReactCommon/jsi/jsi/jsi.cpp +2 -4
  42. package/ReactCommon/jsi/jsi/test/testlib.cpp +285 -8
  43. package/ReactCommon/jsi/jsi/test/testlib.h +1 -0
  44. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +2 -1
  45. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +6 -2
  46. package/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp +49 -19
  47. package/package.json +8 -8
  48. package/scripts/cocoapods/utils.rb +51 -0
  49. package/scripts/codegen/templates/Package.swift.spm-template +13 -2
  50. package/scripts/react_native_pods.rb +1 -0
  51. package/scripts/setup-apple-spm.js +10 -5
  52. package/scripts/spm/autolinking-plugins.js +2 -1
  53. package/scripts/spm/flavored-frameworks.js +1 -0
  54. package/scripts/spm/generate-spm-autolinking.js +34 -96
  55. package/scripts/spm/generate-spm-xcodeproj.js +798 -285
  56. package/scripts/spm/ios-deployment-target.js +16 -63
  57. package/scripts/spm/spm-pbxproj.js +8 -3
  58. package/scripts/spm/spm-types.js +2 -15
  59. package/scripts/spm/sync-spm-autolinking.js +57 -23
  60. package/scripts/spm/xcconfig-files.js +149 -0
  61. package/sdks/.hermesv1version +1 -1
  62. package/sdks/hermes-engine/version.properties +1 -1
  63. package/types_DEPRECATED/index.d.ts +1 -0
  64. package/types_DEPRECATED/src/private/assets/AssetRegistry.d.ts +44 -0
  65. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +7 -6
  66. package/types_generated/Libraries/Components/Button.d.ts +30 -29
  67. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +8 -7
  68. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +6 -5
  69. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +7 -6
  70. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +26 -25
  71. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +23 -22
  72. package/types_generated/Libraries/Image/ImageProps.d.ts +39 -36
  73. package/types_generated/Libraries/Modal/Modal.d.ts +4 -3
  74. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +5 -8
  75. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +10 -10
@@ -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<<1a7e345750f65ec8be8573609ff29750>>
7
+ * @generated SignedSource<<11d421e8e79960453658b94a2e6e79b7>>
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
@@ -16,16 +16,16 @@ import { type ColorValue } from "../StyleSheet/StyleSheet";
16
16
  import TouchableNativeFeedback from "./Touchable/TouchableNativeFeedback";
17
17
  import TouchableOpacity from "./Touchable/TouchableOpacity";
18
18
  import * as React from "react";
19
- export interface ButtonProps {
19
+ type ButtonPropsCore = Readonly<{
20
20
  /**
21
21
  * Text to display inside the button. On Android the given title will be
22
22
  * converted to the uppercased form.
23
23
  */
24
- readonly title: string;
24
+ title: string;
25
25
  /**
26
26
  * Handler called when the user taps the button.
27
27
  */
28
- readonly onPress?: ((event?: GestureResponderEvent) => unknown) | undefined;
28
+ onPress?: ((event?: GestureResponderEvent) => unknown) | undefined;
29
29
  /**
30
30
  * If `true`, doesn't play system sound on touch.
31
31
  *
@@ -33,21 +33,21 @@ export interface ButtonProps {
33
33
  *
34
34
  * @default `false`
35
35
  */
36
- readonly touchSoundDisabled?: boolean | undefined;
36
+ touchSoundDisabled?: boolean | undefined;
37
37
  /**
38
38
  * Color of the text (iOS), or background color of the button (Android).
39
39
  *
40
40
  * @default {@platform android} `'#2196F3'`
41
41
  * @default {@platform ios} `'#007AFF'`
42
42
  */
43
- readonly color?: ColorValue | undefined;
43
+ color?: ColorValue | undefined;
44
44
  /**
45
45
  * May be set to true to force the focus engine to move focus to this view.
46
46
  *
47
47
  * @platform tv
48
48
  *
49
49
  */
50
- readonly hasTVPreferredFocus?: boolean | undefined;
50
+ hasTVPreferredFocus?: boolean | undefined;
51
51
  /**
52
52
  * Designates the next view to receive focus when the user navigates down. See
53
53
  * the [Android documentation][android:nextFocusDown].
@@ -57,7 +57,7 @@ export interface ButtonProps {
57
57
  *
58
58
  * @platform android, tv
59
59
  */
60
- readonly nextFocusDown?: number | undefined;
60
+ nextFocusDown?: number | undefined;
61
61
  /**
62
62
  * Designates the next view to receive focus when the user navigates forward.
63
63
  * See the [Android documentation][android:nextFocusForward].
@@ -67,7 +67,7 @@ export interface ButtonProps {
67
67
  *
68
68
  * @platform android, tv
69
69
  */
70
- readonly nextFocusForward?: number | undefined;
70
+ nextFocusForward?: number | undefined;
71
71
  /**
72
72
  * Designates the next view to receive focus when the user navigates left. See
73
73
  * the [Android documentation][android:nextFocusLeft].
@@ -77,7 +77,7 @@ export interface ButtonProps {
77
77
  *
78
78
  * @platform android, tv
79
79
  */
80
- readonly nextFocusLeft?: number | undefined;
80
+ nextFocusLeft?: number | undefined;
81
81
  /**
82
82
  * Designates the next view to receive focus when the user navigates right. See
83
83
  * the [Android documentation][android:nextFocusRight].
@@ -87,7 +87,7 @@ export interface ButtonProps {
87
87
  *
88
88
  * @platform android, tv
89
89
  */
90
- readonly nextFocusRight?: number | undefined;
90
+ nextFocusRight?: number | undefined;
91
91
  /**
92
92
  * Designates the next view to receive focus when the user navigates up. See
93
93
  * the [Android documentation][android:nextFocusUp].
@@ -97,44 +97,45 @@ export interface ButtonProps {
97
97
  *
98
98
  * @platform android, tv
99
99
  */
100
- readonly nextFocusUp?: number | undefined;
100
+ nextFocusUp?: number | undefined;
101
101
  /**
102
102
  * Text to display for blindness accessibility features.
103
103
  */
104
- readonly accessibilityLabel?: string | undefined;
104
+ accessibilityLabel?: string | undefined;
105
105
  /**
106
106
  * Alias for `accessibilityLabel`.
107
107
  */
108
- readonly "aria-label"?: string | undefined;
108
+ "aria-label"?: string | undefined;
109
109
  /**
110
110
  * If `true`, disable all interactions for this component.
111
111
  *
112
112
  * @default `false`
113
113
  */
114
- readonly disabled?: boolean | undefined;
115
- readonly testID?: string | undefined;
116
- readonly accessible?: boolean | undefined;
117
- readonly accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
118
- readonly onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
119
- readonly accessibilityState?: AccessibilityState | undefined;
114
+ disabled?: boolean | undefined;
115
+ testID?: string | undefined;
116
+ accessible?: boolean | undefined;
117
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
118
+ onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
119
+ accessibilityState?: AccessibilityState | undefined;
120
120
  /**
121
121
  * Alias for `accessibilityState`.
122
122
  */
123
- readonly "aria-busy"?: boolean | undefined;
124
- readonly "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
125
- readonly "aria-disabled"?: boolean | undefined;
126
- readonly "aria-expanded"?: boolean | undefined;
127
- readonly "aria-selected"?: boolean | undefined;
128
- readonly importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
129
- readonly accessibilityHint?: string | undefined;
123
+ "aria-busy"?: boolean | undefined;
124
+ "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
125
+ "aria-disabled"?: boolean | undefined;
126
+ "aria-expanded"?: boolean | undefined;
127
+ "aria-selected"?: boolean | undefined;
128
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
129
+ accessibilityHint?: string | undefined;
130
130
  /**
131
131
  * A BCP 47 language tag for the screen reader to use when reading text
132
132
  * content.
133
133
  *
134
134
  * @platform ios
135
135
  */
136
- readonly accessibilityLanguage?: string | undefined;
137
- }
136
+ accessibilityLanguage?: string | undefined;
137
+ }>;
138
+ export interface ButtonProps extends ButtonPropsCore {}
138
139
  declare const NativeTouchable: typeof TouchableNativeFeedback | typeof TouchableOpacity;
139
140
  export type ButtonInstance = React.ComponentRef<typeof NativeTouchable>;
140
141
  declare const Button: (props: Omit<ButtonProps, "ref"> & {
@@ -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<<3f541a412817d9e42fac21fbe8ef3bcf>>
7
+ * @generated SignedSource<<04d678da86d68f6cdaf135c50ad68fdc>>
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
@@ -14,29 +14,30 @@ import type { ViewStyleProp } from "../../StyleSheet/StyleSheet";
14
14
  import type { ViewProps } from "../View/ViewPropTypes";
15
15
  import View from "../View/View";
16
16
  import * as React from "react";
17
- export interface KeyboardAvoidingViewProps extends Readonly<Omit<ViewProps, "behavior" | "contentContainerStyle" | "enabled" | "keyboardVerticalOffset">> {
17
+ type KeyboardAvoidingViewPropsCore = Readonly<{
18
18
  /**
19
19
  * Specify how to react to the presence of the keyboard.
20
20
  */
21
- readonly behavior?: ("height" | "position" | "padding") | undefined;
21
+ behavior?: ("height" | "position" | "padding") | undefined;
22
22
  /**
23
23
  * The style of the content container (View) when `behavior` is 'position'.
24
24
  */
25
- readonly contentContainerStyle?: ViewStyleProp | undefined;
25
+ contentContainerStyle?: ViewStyleProp | undefined;
26
26
  /**
27
27
  * Whether the `KeyboardAvoidingView` is enabled.
28
28
  *
29
29
  * @default `true`
30
30
  */
31
- readonly enabled?: boolean | undefined;
31
+ enabled?: boolean | undefined;
32
32
  /**
33
33
  * Distance between the top of the user screen and the React Native view,
34
34
  * may be non-zero in some use cases.
35
35
  *
36
36
  * @default `0`
37
37
  */
38
- readonly keyboardVerticalOffset?: number | undefined;
39
- }
38
+ keyboardVerticalOffset?: number | undefined;
39
+ }>;
40
+ export interface KeyboardAvoidingViewProps extends Readonly<Omit<ViewProps, keyof KeyboardAvoidingViewPropsCore | keyof {}> & Omit<KeyboardAvoidingViewPropsCore, keyof {}>> {}
40
41
  type KeyboardAvoidingViewState = {
41
42
  bottom: number;
42
43
  };
@@ -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<<0bebe5cda4f56ac73ce6710d1c75b851>>
7
+ * @generated SignedSource<<43f4dd9989721d9e7d1b4a2d7f8f5da7>>
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
@@ -20,10 +20,10 @@ import { type PressableAndroidRippleConfig } from "./useAndroidRippleForView";
20
20
  import * as React from "react";
21
21
  export type PressableInstance = HostInstance;
22
22
  export type { PressableAndroidRippleConfig };
23
- export interface PressableStateCallbackType {
24
- readonly pressed: boolean;
25
- readonly focused: boolean;
26
- }
23
+ type PressableStateCallbackTypeCore = Readonly<{
24
+ pressed: boolean;
25
+ focused: boolean;
26
+ }>;
27
27
  type TVProps = Readonly<{
28
28
  hasTVPreferredFocus?: boolean | undefined;
29
29
  isTVSelectable?: boolean | undefined;
@@ -38,6 +38,7 @@ type TVProps = Readonly<{
38
38
  onFocusCapture?: ((event: FocusEvent) => void) | undefined;
39
39
  onBlurCapture?: ((event: BlurEvent) => void) | undefined;
40
40
  }>;
41
+ export interface PressableStateCallbackType extends PressableStateCallbackTypeCore {}
41
42
  type PressableBaseProps = Readonly<{
42
43
  /**
43
44
  * Whether a press gesture can be interrupted by a parent gesture such as 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<<42855b388c9d324a54c02f458ee8f5ec>>
7
+ * @generated SignedSource<<77b194017f6f3ea0dbc2d05267d4c10e>>
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/InputAccessoryView.js
@@ -12,15 +12,16 @@
12
12
 
13
13
  import { type ColorValue, type ViewStyleProp } from "../../StyleSheet/StyleSheet";
14
14
  import * as React from "react";
15
- export interface InputAccessoryViewProps {
15
+ type InputAccessoryViewPropsCore = Readonly<{
16
16
  readonly children: React.ReactNode;
17
17
  /**
18
18
  * An ID used to associate this `InputAccessoryView` to specified `TextInput`(s).
19
19
  */
20
- readonly nativeID?: string | undefined;
21
- readonly style?: ViewStyleProp | undefined;
22
- readonly backgroundColor?: ColorValue | undefined;
23
- }
20
+ nativeID?: string | undefined;
21
+ style?: ViewStyleProp | undefined;
22
+ backgroundColor?: ColorValue | undefined;
23
+ }>;
24
+ export interface InputAccessoryViewProps extends InputAccessoryViewPropsCore {}
24
25
  declare const InputAccessoryView: React.ComponentType<InputAccessoryViewProps>;
25
26
  /**
26
27
  * A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is displayed above the keyboard whenever a `TextInput` has focus. This component can be used to create custom toolbars.
@@ -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<<f8d8bb2136230bfb32d27be5fa1ef55c>>
7
+ * @generated SignedSource<<337ba3f5a85d7ad00f894c24f848fd20>>
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
@@ -28,29 +28,29 @@ export type TouchableWithoutFeedbackPropsAndroid = {
28
28
  */
29
29
  touchSoundDisabled?: boolean | undefined;
30
30
  };
31
- export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithoutFeedbackPropsAndroid & TouchableWithoutFeedbackPropsIOS & AccessibilityProps> {
32
- readonly children?: React.ReactNode | undefined;
31
+ type TouchableWithoutFeedbackPropsCore = {
32
+ children?: React.ReactNode | undefined;
33
33
  /**
34
34
  * Delay in ms, from onPressIn, before onLongPress is called.
35
35
  */
36
- readonly delayLongPress?: number | undefined;
36
+ delayLongPress?: number | undefined;
37
37
  /**
38
38
  * Delay in ms, from the start of the touch, before onPressIn is called.
39
39
  */
40
- readonly delayPressIn?: number | undefined;
40
+ delayPressIn?: number | undefined;
41
41
  /**
42
42
  * Delay in ms, from the release of the touch, before onPressOut is called.
43
43
  */
44
- readonly delayPressOut?: number | undefined;
44
+ delayPressOut?: number | undefined;
45
45
  /**
46
46
  * If true, disable all interactions for this component.
47
47
  */
48
- readonly disabled?: boolean | undefined;
48
+ disabled?: boolean | undefined;
49
49
  /**
50
50
  * Whether this View should be focusable with a non-touch input device,
51
51
  * eg. receive focus with a hardware keyboard / TV remote.
52
52
  */
53
- readonly focusable?: boolean | undefined;
53
+ focusable?: boolean | undefined;
54
54
  /**
55
55
  * This defines how far your touch can start away from the button.
56
56
  * This is added to pressRetentionOffset when moving off of the button.
@@ -58,39 +58,39 @@ export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithout
58
58
  * the Z-index of sibling views always takes precedence if a touch hits
59
59
  * two overlapping views.
60
60
  */
61
- readonly hitSlop?: EdgeInsetsOrSizeProp | undefined;
61
+ hitSlop?: EdgeInsetsOrSizeProp | undefined;
62
62
  /**
63
63
  * Used to reference react managed views from native code.
64
64
  */
65
- readonly id?: string | undefined;
66
- readonly importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
67
- readonly nativeID?: string | undefined;
68
- readonly onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
65
+ id?: string | undefined;
66
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
67
+ nativeID?: string | undefined;
68
+ onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
69
69
  /**
70
70
  * When `accessible` is true (which is the default) this may be called when
71
71
  * the OS-specific concept of "blur" occurs, meaning the element lost focus.
72
72
  * Some platforms may not have the concept of blur.
73
73
  */
74
- readonly onBlur?: ((event: BlurEvent) => unknown) | undefined;
74
+ onBlur?: ((event: BlurEvent) => unknown) | undefined;
75
75
  /**
76
76
  * When `accessible` is true (which is the default) this may be called when
77
77
  * the OS-specific concept of "focus" occurs. Some platforms may not have
78
78
  * the concept of focus.
79
79
  */
80
- readonly onFocus?: ((event: FocusEvent) => unknown) | undefined;
80
+ onFocus?: ((event: FocusEvent) => unknown) | undefined;
81
81
  /**
82
82
  * Invoked on mount and layout changes with
83
83
  * {nativeEvent: {layout: {x, y, width, height}}}
84
84
  */
85
- readonly onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
86
- readonly onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
85
+ onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
86
+ onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
87
87
  /**
88
88
  * Called when the touch is released,
89
89
  * but not if cancelled (e.g. by a scroll that steals the responder lock).
90
90
  */
91
- readonly onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
92
- readonly onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
93
- readonly onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
91
+ onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
92
+ onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
93
+ onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
94
94
  /**
95
95
  * When the scroll view is disabled, this defines how far your
96
96
  * touch may move off of the button, before deactivating the button.
@@ -99,17 +99,18 @@ export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithout
99
99
  * while the scroll view is disabled. Ensure you pass in a constant
100
100
  * to reduce memory allocations.
101
101
  */
102
- readonly pressRetentionOffset?: EdgeInsetsOrSizeProp | undefined;
103
- readonly rejectResponderTermination?: boolean | undefined;
102
+ pressRetentionOffset?: EdgeInsetsOrSizeProp | undefined;
103
+ rejectResponderTermination?: boolean | undefined;
104
104
  /**
105
105
  * Used to locate this view in end-to-end tests.
106
106
  */
107
- readonly testID?: string | undefined;
107
+ testID?: string | undefined;
108
108
  /**
109
109
  * //FIXME: not in doc but available in examples
110
110
  */
111
- readonly style?: ViewStyleProp | undefined;
112
- }
111
+ style?: ViewStyleProp | undefined;
112
+ };
113
+ export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithoutFeedbackPropsCore & TouchableWithoutFeedbackPropsAndroid & TouchableWithoutFeedbackPropsIOS & AccessibilityProps> {}
113
114
  /**
114
115
  * Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.
115
116
  *
@@ -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<<a69c6bc79300ec06cb703e69a92ceee6>>
7
+ * @generated SignedSource<<619e0dddb6f57da495dbb99fd5cb011f>>
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
@@ -207,14 +207,14 @@ export type AccessibilityPropsIOS = Readonly<{
207
207
  */
208
208
  accessibilityRespondsToUserInteraction?: boolean | undefined;
209
209
  }>;
210
- export interface AccessibilityProps extends Readonly<Omit<AccessibilityPropsAndroid, keyof AccessibilityPropsIOS | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & Omit<AccessibilityPropsIOS, "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden">> {
210
+ type AccessibilityPropsCore = Readonly<{
211
211
  /**
212
212
  * When `true`, indicates that the view is an accessibility element.
213
213
  * By default, all the touchable elements are accessible.
214
214
  *
215
215
  * See https://reactnative.dev/docs/view#accessible
216
216
  */
217
- readonly accessible?: boolean | undefined;
217
+ accessible?: boolean | undefined;
218
218
  /**
219
219
  * Overrides the text that's read by the screen reader when the user interacts
220
220
  * with the element. By default, the label is constructed by traversing all
@@ -222,7 +222,7 @@ export interface AccessibilityProps extends Readonly<Omit<AccessibilityPropsAndr
222
222
  *
223
223
  * See https://reactnative.dev/docs/view#accessibilitylabel
224
224
  */
225
- readonly accessibilityLabel?: string | undefined;
225
+ accessibilityLabel?: string | undefined;
226
226
  /**
227
227
  * An accessibility hint helps users understand what will happen when they perform
228
228
  * an action on the accessibility element when that result is not obvious from the
@@ -231,52 +231,53 @@ export interface AccessibilityProps extends Readonly<Omit<AccessibilityPropsAndr
231
231
  *
232
232
  * See https://reactnative.dev/docs/view#accessibilityHint
233
233
  */
234
- readonly accessibilityHint?: string | undefined;
234
+ accessibilityHint?: string | undefined;
235
235
  /**
236
236
  * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
237
237
  * https://github.com/facebook/react-native/issues/34424
238
238
  */
239
- readonly "aria-label"?: string | undefined;
239
+ "aria-label"?: string | undefined;
240
240
  /**
241
241
  * Indicates to accessibility services to treat UI component like a specific role.
242
242
  */
243
- readonly accessibilityRole?: AccessibilityRole | undefined;
243
+ accessibilityRole?: AccessibilityRole | undefined;
244
244
  /**
245
245
  * Alias for accessibilityRole
246
246
  */
247
- readonly role?: Role | undefined;
247
+ role?: Role | undefined;
248
248
  /**
249
249
  * Indicates to accessibility services that UI Component is in a specific State.
250
250
  */
251
- readonly accessibilityState?: AccessibilityState | undefined;
252
- readonly accessibilityValue?: AccessibilityValue | undefined;
251
+ accessibilityState?: AccessibilityState | undefined;
252
+ accessibilityValue?: AccessibilityValue | undefined;
253
253
  /**
254
254
  * alias for accessibilityState
255
255
  * It represents textual description of a component's value, or for range-based components, such as sliders and progress bars.
256
256
  */
257
- readonly "aria-valuemax"?: AccessibilityValue["max"] | undefined;
258
- readonly "aria-valuemin"?: AccessibilityValue["min"] | undefined;
259
- readonly "aria-valuenow"?: AccessibilityValue["now"] | undefined;
260
- readonly "aria-valuetext"?: AccessibilityValue["text"] | undefined;
257
+ "aria-valuemax"?: AccessibilityValue["max"] | undefined;
258
+ "aria-valuemin"?: AccessibilityValue["min"] | undefined;
259
+ "aria-valuenow"?: AccessibilityValue["now"] | undefined;
260
+ "aria-valuetext"?: AccessibilityValue["text"] | undefined;
261
261
  /**
262
262
  * Provides an array of custom actions available for accessibility.
263
263
  *
264
264
  */
265
- readonly accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
265
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
266
266
  /**
267
267
  * alias for accessibilityState
268
268
  *
269
269
  * see https://reactnative.dev/docs/accessibility#accessibilitystate
270
270
  */
271
- readonly "aria-busy"?: boolean | undefined;
272
- readonly "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
273
- readonly "aria-disabled"?: boolean | undefined;
274
- readonly "aria-expanded"?: boolean | undefined;
275
- readonly "aria-selected"?: boolean | undefined;
271
+ "aria-busy"?: boolean | undefined;
272
+ "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
273
+ "aria-disabled"?: boolean | undefined;
274
+ "aria-expanded"?: boolean | undefined;
275
+ "aria-selected"?: boolean | undefined;
276
276
  /** A value indicating whether the accessibility elements contained within
277
277
  * this accessibility element are hidden.
278
278
  *
279
279
  * See https://reactnative.dev/docs/view#aria-hidden
280
280
  */
281
- readonly "aria-hidden"?: boolean | undefined;
282
- }
281
+ "aria-hidden"?: boolean | undefined;
282
+ }>;
283
+ export interface AccessibilityProps extends Readonly<Omit<AccessibilityPropsAndroid, keyof AccessibilityPropsIOS | keyof AccessibilityPropsCore | keyof {}> & Omit<AccessibilityPropsIOS, keyof AccessibilityPropsCore | keyof {}> & Omit<AccessibilityPropsCore, keyof {}>> {}