Socket
Socket
Sign inDemoInstall

react-swipe-button

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipe-button

This Package is a swipe button for Web / Mobile


Version published
Maintainers
1
Weekly downloads
611
increased by16.6%

Weekly downloads

Readme

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

FAQs

Last updated on 26 Nov 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc