Skip to content

Commit d073182

Browse files
retyuimeta-codesync[bot]
authored andcommitted
feat: [TypeScript] Add missing onPressMove prop to <Pressable /> (#55597)
Summary: I worked on a bug that require to cancel my animation on TapDown+Drag event, so to do that I need to subscribe to move event and `onPressMove` exist on JS side but not in the `.d.ts` ## Changelog: [GENERAL] [ADDED] - [TypeScript] Add missing `onPressMove` prop to `<Pressable />` Pull Request resolved: #55597 Test Plan: ```tsx <Pressable onPressMove={fn} /> // no TS error ``` Reviewed By: CalixTang Differential Revision: D93632094 Pulled By: joevilches fbshipit-source-id: b9dd9d5dfc89720a85ed4e66fc0bf934f573107d
1 parent 424bfe1 commit d073182

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/react-native/Libraries/Components/Pressable/Pressable.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export interface PressableProps
5555
*/
5656
onPressIn?: null | ((event: GestureResponderEvent) => void) | undefined;
5757

58+
/**
59+
* Called when the press location moves.
60+
*/
61+
onPressMove?: null | ((event: GestureResponderEvent) => void) | undefined;
62+
5863
/**
5964
* Called when a touch is released before `onPress`.
6065
*/

0 commit comments

Comments
 (0)