React swipe component
npm install ui-react.swipenpm i ui-react.swipe -S or npm install ui-react.swipe --savegit clone git@github.com:ui-react/ui-react.swipe.git or git clone https://github.com/ui-react/ui-react.swipe.gitnpm i or npm installnpm run build, Watching npm run watchjavascript
import React, { Component } from 'react';
import { render } from 'react-dom';
import Swipe from 'ui-react.swipe';class MyApp extends Component {
onSwipeStart = () => {
console.info('Swipe START!');
}
onSwipeLeft = () => {
console.info('Swipe LEFT!');
}
render() {
return(
My swipe block
)
}
}
render( , document.getElementById('my-app'));
``