Skip to content

Add pointerEvents prop to TextProps (#56950)#56950

Closed
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D106183960
Closed

Add pointerEvents prop to TextProps (#56950)#56950
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D106183960

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented May 23, 2026

Summary:

Add pointerEvents to TextProps in the Flow source. This prop is supported at the native layer — BaseParagraphProps (the C++ props struct for Text/Paragraph) extends ViewProps, which includes pointerEvents. The old hand-written TypeScript types (Text.d.ts) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (types_generated).

Changelog:
[General][Fixed] - Strict TypeScript API: Add missing pointerEvents prop to Text component

Reviewed By: cortinico

Differential Revision: D106183960

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 23, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 23, 2026

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106183960.

@github-actions
Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

@meta-codesync meta-codesync Bot changed the title Add pointerEvents prop to TextProps Add pointerEvents prop to TextProps (#56950) Jun 1, 2026
@huntie huntie force-pushed the export-D106183960 branch 2 times, most recently from d3a8770 to 1c3f594 Compare June 1, 2026 13:36
huntie added a commit to huntie/react-native that referenced this pull request Jun 1, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Differential Revision: D106183960
huntie added a commit to huntie/react-native that referenced this pull request Jun 1, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Differential Revision: D106183960
Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

huntie added a commit to huntie/react-native that referenced this pull request Jun 2, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Reviewed By: cortinico

Differential Revision: D106183960
huntie added a commit to huntie/react-native that referenced this pull request Jun 2, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Reviewed By: cortinico

Differential Revision: D106183960
@huntie huntie force-pushed the export-D106183960 branch from 1c3f594 to fccc4b5 Compare June 2, 2026 16:35
huntie added a commit to huntie/react-native that referenced this pull request Jun 2, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Reviewed By: cortinico

Differential Revision: D106183960
huntie added a commit to huntie/react-native that referenced this pull request Jun 2, 2026
Summary:
Pull Request resolved: facebook#56950

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Differential Revision: D106183960
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Reviewed By: cortinico

Differential Revision: D106183960
@huntie huntie force-pushed the export-D106183960 branch from fccc4b5 to 7da377d Compare June 2, 2026 17:11
huntie added a commit to huntie/react-native that referenced this pull request Jun 2, 2026
Summary:

Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).

Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component

Reviewed By: cortinico

Differential Revision: D106183960
@meta-codesync meta-codesync Bot closed this in a2e042f Jun 2, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Jun 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jun 2, 2026

This pull request has been merged in a2e042f.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in a2e042f

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D106183960 branch June 2, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants