Skip to content

Add pointerEvents prop to TextProps#56950

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

Add pointerEvents prop to TextProps#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

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

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

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant