react-swipe-card
Tinder style swipe cards
Usage
Install
$ npm install react-swipe-card -save
Demo
Code
const data = 'Alexandre' 'Thomas' 'Lucien' const Wrapper = { return <Cards onEnd= className='master-root'> data </Cards> }
Components
Cards
Props:
- className: string
- onEnd: function
- alertRight: component
- alertLeft: component
- alertTop: component
- alertBottom: component
Card
Props:
- onSwipeLeft: function
- onSwipeRight: function
- onSwipeTop: function
- onSwipeBottom: function