https://github.com/kitze/react-long
A LongPress component for React
https://github.com/kitze/react-long
Last synced: 12 months ago
JSON representation
A LongPress component for React
- Host: GitHub
- URL: https://github.com/kitze/react-long
- Owner: kitze
- Created: 2018-02-10T17:23:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T17:25:50.000Z (over 3 years ago)
- Last Synced: 2025-04-13T13:12:22.393Z (about 1 year ago)
- Language: JavaScript
- Size: 1.13 MB
- Stars: 87
- Watchers: 5
- Forks: 9
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
### 🙋♂️ Made by [@thekitze](https://twitter.com/thekitze)
### Other projects:
- 🏫 [React Academy](https://reactacademy.io) - Interactive React and GraphQL workshops
- 💌 [Twizzy](https://twizzy.app) - A standalone app for Twitter DM
- 💻 [Sizzy](https://sizzy.co) - A tool for testing responsive design on multiple devices at once
- 🤖 [JSUI](https://github.com/kitze/JSUI) - A powerful UI toolkit for managing JavaScript apps
---
# react-long
Warning: works only on devices that support touch.
# Demo
[http://react-long.surge.sh](http://react-long.surge.sh)
# Example
```js
alert('pressed for 1s')}
onPress={() => alert('pressed')}
>
Hello world
```