react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

add hook for `isDragging` to Swipeable

Open chrisdrackett opened this issue 5 years ago • 2 comments

right now its possible to tell when drag ends (onSwipeableWillClose) but there is no way to attach functionality to when dragging starts as far as I can tell. onSwipeableWillOpen is only called when opened programmatically, not when the user starts to drag the component

chrisdrackett avatar Jun 25 '20 19:06 chrisdrackett

~~Resolved by #999.~~

My mistake, it was for drawer.

jgonet avatar Nov 24 '20 15:11 jgonet

onSwipeableWillOpen is only called when opened programmatically, not when the user starts to drag the component

Actually it's called when user finish the open gesture (release finger) and onSwipeableOpen is opened after the animation totally ended.

MoOx avatar Dec 29 '20 17:12 MoOx