Skip to content
Open
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<<08dd369849273136812ea5edbda6e1df>>
* @generated SignedSource<<74de6847fd6b214f286780939f9c039f>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
Expand Down Expand Up @@ -5092,6 +5092,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 @@ -6007,7 +6008,7 @@ export {
AlertOptions, // a0cdac0f
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // 1a47480c
Animated, // fec47bfa
AppConfig, // ce4209a7
AppRegistry, // 5edf0524
AppState, // 12012be5
Expand Down Expand Up @@ -6227,7 +6228,7 @@ export {
TVViewPropsIOS, // 330ce7b5
TargetedEvent, // 16e98910
TaskProvider, // 266dedf2
Text, // 608149e8
Text, // 77d3bc9a
TextContentType, // 239b3ecc
TextInput, // 3b7016bb
TextInputAndroidProps, // 3f09ce49
Expand All @@ -6241,7 +6242,7 @@ export {
TextInputSelectionChangeEvent, // d4d10630
TextInputSubmitEditingEvent, // 22885c31
TextLayoutEvent, // 73ab173e
TextProps, // 4c29419c
TextProps, // deedb8f3
TextStyle, // bb9b7a58
ToastAndroid, // 88a8969a
Touchable, // da3239ee
Expand Down
Loading