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.
- package/Libraries/Animated/components/AnimatedScrollView.js +2 -2
- package/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm +26 -1
- package/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -5
- package/Libraries/Components/Button.js +4 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
- package/Libraries/Components/Pressable/Pressable.js +4 -2
- package/Libraries/Components/TextInput/InputAccessoryView.js +8 -6
- package/Libraries/Components/TextInput/TextInput.js +5 -5
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +85 -84
- package/Libraries/Components/View/ViewAccessibility.js +8 -4
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Image/ImageProps.js +38 -18
- package/Libraries/LogBox/LogBoxNotificationContainer.js +7 -1
- package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +3 -3
- package/Libraries/Modal/Modal.js +4 -2
- package/Libraries/StyleSheet/StyleSheet.js +3 -9
- package/Libraries/StyleSheet/StyleSheet.js.flow +3 -9
- package/Libraries/StyleSheet/StyleSheetTypes.js +12 -9
- package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
- package/Libraries/Text/Text.js +6 -6
- package/React/Base/RCTStatusBarAppearance.h +30 -0
- package/React/Base/RCTStatusBarAppearance.mm +66 -0
- package/React/Base/RCTVersion.m +2 -2
- package/React/CoreModules/RCTStatusBarManager.mm +34 -9
- package/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm +13 -5
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +30 -2
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +9 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +8 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +16 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextDecorationStyle.kt +32 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +17 -12
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactApple/RCTSwiftUI/RCTSwiftUIContainerView.swift +4 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/ReactCommon/jsi/jsi/decorator.h +64 -0
- package/ReactCommon/jsi/jsi/jsi.cpp +2 -4
- package/ReactCommon/jsi/jsi/test/testlib.cpp +285 -8
- package/ReactCommon/jsi/jsi/test/testlib.h +1 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +2 -1
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +6 -2
- package/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp +49 -19
- package/package.json +8 -8
- package/scripts/cocoapods/utils.rb +51 -0
- package/scripts/codegen/templates/Package.swift.spm-template +13 -2
- package/scripts/react_native_pods.rb +1 -0
- package/scripts/setup-apple-spm.js +10 -5
- package/scripts/spm/autolinking-plugins.js +2 -1
- package/scripts/spm/flavored-frameworks.js +1 -0
- package/scripts/spm/generate-spm-autolinking.js +34 -96
- package/scripts/spm/generate-spm-xcodeproj.js +798 -285
- package/scripts/spm/ios-deployment-target.js +16 -63
- package/scripts/spm/spm-pbxproj.js +8 -3
- package/scripts/spm/spm-types.js +2 -15
- package/scripts/spm/sync-spm-autolinking.js +57 -23
- package/scripts/spm/xcconfig-files.js +149 -0
- package/sdks/.hermesv1version +1 -1
- package/sdks/hermes-engine/version.properties +1 -1
- package/types_DEPRECATED/index.d.ts +1 -0
- package/types_DEPRECATED/src/private/assets/AssetRegistry.d.ts +44 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +7 -6
- package/types_generated/Libraries/Components/Button.d.ts +30 -29
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +8 -7
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +6 -5
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +7 -6
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +26 -25
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +23 -22
- package/types_generated/Libraries/Image/ImageProps.d.ts +39 -36
- package/types_generated/Libraries/Modal/Modal.d.ts +4 -3
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +5 -8
- 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<<
|
|
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
|
-
|
|
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
|
-
|
|
24
|
+
title: string;
|
|
25
25
|
/**
|
|
26
26
|
* Handler called when the user taps the button.
|
|
27
27
|
*/
|
|
28
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
100
|
+
nextFocusUp?: number | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* Text to display for blindness accessibility features.
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
accessibilityLabel?: string | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* Alias for `accessibilityLabel`.
|
|
107
107
|
*/
|
|
108
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
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<<
|
|
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
|
-
|
|
17
|
+
type KeyboardAvoidingViewPropsCore = Readonly<{
|
|
18
18
|
/**
|
|
19
19
|
* Specify how to react to the presence of the keyboard.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
behavior?: ("height" | "position" | "padding") | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The style of the content container (View) when `behavior` is 'position'.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
contentContainerStyle?: ViewStyleProp | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Whether the `KeyboardAvoidingView` is enabled.
|
|
28
28
|
*
|
|
29
29
|
* @default `true`
|
|
30
30
|
*/
|
|
31
|
-
|
|
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
|
-
|
|
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<<
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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<<
|
|
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
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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<<
|
|
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
|
-
|
|
32
|
-
|
|
31
|
+
type TouchableWithoutFeedbackPropsCore = {
|
|
32
|
+
children?: React.ReactNode | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Delay in ms, from onPressIn, before onLongPress is called.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
delayLongPress?: number | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Delay in ms, from the start of the touch, before onPressIn is called.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
delayPressIn?: number | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Delay in ms, from the release of the touch, before onPressOut is called.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
delayPressOut?: number | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* If true, disable all interactions for this component.
|
|
47
47
|
*/
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
+
hitSlop?: EdgeInsetsOrSizeProp | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Used to reference react managed views from native code.
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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
|
-
|
|
107
|
+
testID?: string | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* //FIXME: not in doc but available in examples
|
|
110
110
|
*/
|
|
111
|
-
|
|
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<<
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
239
|
+
"aria-label"?: string | undefined;
|
|
240
240
|
/**
|
|
241
241
|
* Indicates to accessibility services to treat UI component like a specific role.
|
|
242
242
|
*/
|
|
243
|
-
|
|
243
|
+
accessibilityRole?: AccessibilityRole | undefined;
|
|
244
244
|
/**
|
|
245
245
|
* Alias for accessibilityRole
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
role?: Role | undefined;
|
|
248
248
|
/**
|
|
249
249
|
* Indicates to accessibility services that UI Component is in a specific State.
|
|
250
250
|
*/
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
|
|
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
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
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 {}>> {}
|