Added decalaration for pressRetentionOffset prop to be recognised by typescript (#51068)

Summary:
Added decalaration for  pressRetentionOffset prop to be recognised by typescript

## Changelog:
Added decalaration for  pressRetentionOffset prop to be recognised by typescript in Text.d.ts

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:
[General] [Added] - Add  pressRetentionOffset prop to be recognised by typescript in Text.d.ts

Pull Request resolved: https://github.com/facebook/react-native/pull/51068

Test Plan:
Before fix

https://github.com/user-attachments/assets/476364c4-6602-4916-84f2-1ede56bce285

After fix

https://github.com/user-attachments/assets/e5f720d9-cd7d-4cf0-8499-ebe9f83eb17b

Tested here: Related PR: (https://github.com/microsoft/react-native-windows/pull/14596)

Reviewed By: yungsters

Differential Revision: D74208617

Pulled By: philIip

fbshipit-source-id: 625996bec64058e4e4cdbe108ed53a62426d1222
This commit is contained in:
Abhijeet Jha authored and Facebook GitHub Bot committed 2025-05-06 10:20:41 -07:00
1 parent db0fa9200e
commit d94f4d8c9d
1 file changed
+7
+7
View File
@@ -211,6 +211,13 @@ export interface TextProps
* Controls how touch events are handled. Similar to `View`'s `pointerEvents`.
*/
pointerEvents?: ViewStyle['pointerEvents'] | undefined;
/**
* Defines how far your touch may move off of the button, before deactivating the button.
*/
pressRetentionOffset?:
| {top: number; left: number; bottom: number; right: number}
| undefined;
}
/**