Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-swipe-button

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-swipe-button

react native swipe button component

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Native Swipe Button component


Code for below screenshot
import React, {Fragment} from 'react';
import {Text, ToastAndroid} from 'react-native';

import SwipeButton from 'rn-swipe-button';

const App = () => {
  return (
    <Fragment>
      <Text>React Native Swipe Button - Enabled</Text>
      <SwipeButton />
      <Text>React Native Swipe Button - Disabled</Text>
      <SwipeButton disabled={true} />
      <Text>React Native Swipe Button - With onSwipeSuccess callback</Text>
      <SwipeButton
        disabled={false}
        onSwipeSuccess={() => {
          ToastAndroid.showWithGravity(
            'Submitted successfully!',
            ToastAndroid.SHORT,
            ToastAndroid.CENTER,
          );
        }}
      />
    </Fragment>
  );
};

The below screenshot is from demo app under examples folder in the repo

Keywords

FAQs

Package last updated on 31 Aug 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc