Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/react-native/Libraries/Text/TextProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export type TextPropsAndroid = {
type TextBaseProps = Readonly<{
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => unknown,

/**
* Controls whether the `Text` can be the target of touch events.
*
* See https://reactnative.dev/docs/view#pointerevents
*/
pointerEvents?: ?('auto' | 'box-none' | 'box-only' | 'none'),

/**
* Whether fonts should scale to respect Text Size accessibility settings.
* The default is `true`.
Expand Down
9 changes: 5 additions & 4 deletions packages/react-native/ReactNativeApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<88d962e8bf936576e85b897a4192f39a>>
* @generated SignedSource<<32a24e0b95fe31cb0fd9f022f6e6d3fb>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
Expand Down Expand Up @@ -5043,6 +5043,7 @@ declare type TextBaseProps = {
readonly onResponderTerminationRequest?: () => boolean
readonly onStartShouldSetResponder?: () => boolean
readonly onTextLayout?: (event: TextLayoutEvent) => unknown
readonly pointerEvents?: "auto" | "box-none" | "box-only" | "none"
readonly pressRetentionOffset?: PressRetentionOffset
readonly role?: Role
readonly selectable?: boolean
Expand Down Expand Up @@ -5958,7 +5959,7 @@ export {
AlertOptions, // a0cdac0f
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // d3264d4b
Animated, // 58b532cf
AppConfig, // ce4209a7
AppRegistry, // 5edf0524
AppState, // 12012be5
Expand Down Expand Up @@ -6174,7 +6175,7 @@ export {
TVViewPropsIOS, // 330ce7b5
TargetedEvent, // 16e98910
TaskProvider, // 266dedf2
Text, // 0937861d
Text, // ef2e8026
TextContentType, // 239b3ecc
TextInput, // ee8f6f5d
TextInputAndroidProps, // 3f09ce49
Expand All @@ -6188,7 +6189,7 @@ export {
TextInputSelectionChangeEvent, // 1a6383cf
TextInputSubmitEditingEvent, // e3152e2d
TextLayoutEvent, // c3e8821d
TextProps, // fb3a9124
TextProps, // dabce68a
TextStyle, // bb9b7a58
ToastAndroid, // 88a8969a
Touchable, // a05e8365
Expand Down
Loading