Socket
Socket
Sign inDemoInstall

@dillionverma/react-native-swipe-button

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dillionverma/react-native-swipe-button

A UI component for displaying a button that can be swiped.


Version published
Weekly downloads
52
increased by62.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

React Native Swipe Button

This component can be used to have an animated swipable button in your react-native app.

npm npm (scoped) GitHub issues GitHub pull requests

@dillionverma/react-native-swipe-button

Install

npm i @dillionverma/react-native-swipe-button
// or
yarn add @dillionverma/react-native-swipe-button

Props

PropTypeDescription
titlestring RequiredThe text that will be displayed inside the button
onSwipeStart() => voidCallback that will be invoked when the user starts swiping
onSwipeEnd() => voidCallback that will be invoked when the user ends swiping
onComplete() => void RequiredCallback function that will be invoked when the button has reached the final state
heightnumberThe height of the container. Default 70
borderRadiusnumberThe border radius of the container and button (default: height / 2)
completeThresholdPercentagenumberDeterminates when onComplete should be invoked (default: 100)
containerStyleStylePropStyling for the container
underlayStyleStylePropStyling for the underlay container
iconContainerStyleStylePropStyling for the icon container
titleContainerPropsViewPropsAdditonal Props for the title container
titleContainerStyleStylePropStyling for the title container
titlePropsTextPropsAdditonal Props for the title text
titleStyleStylePropStyling for the title text

Keywords

FAQs

Last updated on 10 Jun 2021

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