1.0.1 • Published 6 years ago
react-button-long-press v1.0.1
react button long press
npm install react-button-long-press
import ButtonLongPress from 'react-button-long-press';
import 'react-button-long-press/dist/index.css';
<ButtonLongPress
clickThreshold={150}
onClick={() => log('onClick')}
longPressThreshold={600}
onLongPress={() => log('onLongPress')}
animationName={"fill"}>
CLICK OR HOLD
</ButtonLongPress>