mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3efbe33ce0
Summary: This PR adds `pointerEvents` to the `TextProps` type. ### Motivation: The `pointerEvents` property is already supported in `Text` components internally, but it was missing from the TypeScript definitions. By adding it to `TextProps`, developers can now use this property with full type safety and without TypeScript errors. This is a type-only change and does not introduce any functional modifications. ## Changelog: [GENERAL] [ADDED] - Added `pointerEvents` to `TextProps` type. Pull Request resolved: https://github.com/facebook/react-native/pull/48081 Test Plan: As this is a type-only update: - Verified that the `pointerEvents` property is now recognized when used with `Text` components in TypeScript projects. - Ensured there are no runtime changes or regressions by testing existing `Text` components for expected behavior. Reviewed By: cipolleschi Differential Revision: D66753454 Pulled By: javache fbshipit-source-id: c8f21b11daa6001a309b1d29fd6259101d11f5d2