-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
Description
As I mentioned in the title, it would be nice to add a double-tap/double-click feature for the pressable component. In this way, extra features can be added for many components.
Problem Statement
For example, when we create a card component, we can use it for different operations with the double-click feature for this card. Like open the menu, add to favorites or text copy to clipboard. Maybe this can be avoided writing extra code or using extra packages.
Proposed Solution or API
<Pressable
onPress={()=>oneTapFunction()}
doublePress={()=>doubleTapFunction()}>
{children}
</Pressable>
Or
<Box
onPress={()=>oneTapFunction()}
doublePress={()=>doubleTapFunction()}>
{children}
</Box>
Or
<DoubleTap
onPress={()=>oneTapFunction()}
doublePress={()=>doubleTapFunction()}>
{children}
</DoubleTap>
Alternatives
No response
Additional Information
No response