An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# React Long Press Hook :point_down:

> React hook for detecting click (or tap) and hold event.

[![Build Status](https://travis-ci.com/minwork/use-long-press.svg?branch=master)](https://travis-ci.com/minwork/use-long-press)
![Codecov](https://img.shields.io/codecov/c/gh/minwork/use-long-press)
![npm type definitions](https://img.shields.io/npm/types/use-long-press)
![npm bundle size](https://img.shields.io/bundlephobia/min/use-long-press)
[![npm](https://img.shields.io/npm/v/use-long-press)](https://www.npmjs.com/package/use-long-press)
[![Github Stars](https://img.shields.io/github/stars/minwork/use-long-press?style=social)](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.