react-native-draggable
react-native-draggable copied to clipboard
Activate dragging with onPressLong event
Hi! I have an "X" image that acts as close button for my screen. I was wondering if I could change the events this way: on one normal press, go back to last Screen (Navigation.goBack() in my case) and after onLongPress, start dragging. I mean to swap what it could be considered the "expected" behaviour. Basically I want my app's user to go Back on one press and to start dragging after one second (I think that's the time value of onLongPress) of holding it's finger in the "X" image. Is there a possibility to do it? Am I missing something that can already be done? Thanks in advance!