@johannes.reuter/react-long
v1.1.3
Published
A LongPress React component
Downloads
1
Readme
react-long
Warning: works only on devices that support touch.
Demo
Example
<div>
<LongPress
time={1000}
onLongPress={() => alert('pressed for 1s')}
onPress={() => alert('pressed')}
>
<div>
Hello world
</div>
</LongPress>
</div>