Swipe to dismiss Component for notifications
npm install @getcabal/react-swipe-to-dismiss
npm install --save react-swipe-to-dismiss
`Usage
react-swipe-to-dismiss decorate your component, not wrapping, so you can use it on layouts too.
When your component become swiped more than it's width, it will be removed and onDismiss callback will be fired.$3
You may see an example here.
`js
// Import
import SwipeToDismiss from 'react-swipe-to-dismiss';// Use
onDismiss={() => this.props.remove()}
>
Your changes has been saved.
``