react-swipe-button
This Package is a swipe button for react
Install
npm install --save react-swipe-button
Demo
This is a demo of react-swipe-button
Usage
import React Component from 'react' import ReactSwipeButton from 'react-swipe-button' { return <ReactSwipeButton ='SWIPE TO UNLOCK' ='#f00' = /> }
Props
text (Default will be 'SWIPE') The text that will display on the swipe button
color (Default will be '#444') The color of swipe button
onSuccess The function that will get called when a swipe is success
License
MIT © rinasm