https://github.com/minwork/use-long-press
React hook for detecting click (or tap) and hold event
https://github.com/minwork/use-long-press
hooks mouse-events react reactjs touch-events typescript
Last synced: 4 months ago
JSON representation
React hook for detecting click (or tap) and hold event
- Host: GitHub
- URL: https://github.com/minwork/use-long-press
- Owner: minwork
- License: mit
- Archived: true
- Created: 2020-04-18T13:27:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-20T20:47:13.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T07:32:07.782Z (8 months ago)
- Topics: hooks, mouse-events, react, reactjs, touch-events, typescript
- Language: TypeScript
- Size: 1.54 MB
- Stars: 122
- Watchers: 1
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# React Long Press Hook :point_down:
> React hook for detecting click (or tap) and hold event.
[](https://travis-ci.com/minwork/use-long-press)



[](https://www.npmjs.com/package/use-long-press)
[](https://github.com/minwork/use-long-press)- Easy to use
- Highly customizable options
- Thoroughly tested## ⚠️ New repository
This package has been moved to [Minwork's React Libraries](https://github.com/minwork/react) which is a common place for different react hooks and components.
## 🎉 Version 3 is now available!
Version 1 and 2 is now deprecated ([explanation](https://minwork.gitbook.io/long-press-hook/architectural-decisions/v1-and-v2-deprecation)).
Use `yarn add use-long-press@latest` or `npm install --save use-long-press@latest` to install it.