@jdcfe/yep-gesture
Support gesture for react component, inspired by rc-gesture and hammer.js.
Install
npm install --save @jdcfe/yep-gesture
Usage
import Gesture from '@jdcfe/yep-gesture';
ReactDOM.render(
<Gesture
onTap={(gestureStatus) => { console.log(gestureStatus); }}
>
<div>container</div>
</Gesture>,
container);