REACT EASY SWIPE
Add swipe interactions to your react component.
- Generated using react-init
- Open your console;
- Swipe over the content and check your console;
- This is a touch component so make sure your browser is emulating touch.
Tips:
-
To prevent scroll during swipe, return true from the handler passed to onSwipeMove
-
To allow mouse events to behave like touch, pass a prop allowMouseEvents
Instalation
npm install react-easy-swipe --save