minwork / use-long-press

React hook for detecting click (or tap) and hold event
MIT License
120 stars 12 forks source link

Swap Callback and Context positions in TS generics #43

Closed minwork closed 1 year ago

minwork commented 1 year ago

Allow using useLongPress<Element, ContextType>(...) syntax instead of useLongPress<Element, LongPressCallback<Element, ContextType>, ContextType>(...)

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

minwork commented 1 year ago

Implemented in v3 alpha version use-long-press@alpha