🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-swipe-button

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipe-button

This Package is a swipe button for Web / Mobile

1.0.1
latest
Source
npm
Version published
Weekly downloads
196
-24.62%
Maintainers
1
Weekly downloads
 
Created
Source

react-swipe-button

This Package is a swipe button for react

NPM JavaScript Style Guide

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'

class Example extends Component {
  render () {
    return (
      <ReactSwipeButton 
        text='SWIPE TO UNLOCK'
        color='#f00'
        onSuccess={onSucces}
      />
    )
  }
}

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

Keywords

react swipe

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts