Skip to content

Commit d94f4d8

Browse files
iamAbhi-916facebook-github-bot
authored andcommitted
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: #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: (microsoft/react-native-windows#14596) Reviewed By: yungsters Differential Revision: D74208617 Pulled By: philIip fbshipit-source-id: 625996bec64058e4e4cdbe108ed53a62426d1222
1 parent db0fa92 commit d94f4d8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • packages/react-native/Libraries/Text

packages/react-native/Libraries/Text/Text.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ export interface TextProps
211211
* Controls how touch events are handled. Similar to `View`'s `pointerEvents`.
212212
*/
213213
pointerEvents?: ViewStyle['pointerEvents'] | undefined;
214+
215+
/**
216+
* Defines how far your touch may move off of the button, before deactivating the button.
217+
*/
218+
pressRetentionOffset?:
219+
| {top: number; left: number; bottom: number; right: number}
220+
| undefined;
214221
}
215222

216223
/**

0 commit comments

Comments
 (0)