Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 337 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 337 Bytes

react-long

Warning: works only on devices that support touch.

Demo

http://react-long.surge.sh

Example

<div>
  <LongPress
    time={1000}
    onLongPress={() => alert('pressed for 1s')}
    onPress={() => alert('pressed')}
  >
    <div>
      Hello world
    </div>
  </LongPress>
</div>