Socket
Socket
Sign inDemoInstall

@arelstone/react-native-swipe-button

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @arelstone/react-native-swipe-button

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


Version published
Weekly downloads
102
decreased by-1.92%
Maintainers
1
Install size
19.2 kB
Created
Weekly downloads
 

Readme

Source

@arelstone/react-native-swipe-button

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

A lot of app use the swipe to complete. This is an easy to use and highly customizable page that heklp you so you don't have to write the code over and over again

npm npm (scoped) GitHub issues GitHub pull requests

@arelstone/react-native-swipe-button

Install

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

Props

PropTypeDescription
titlestring RequiredThe text that will be displayed inside the button
onComplete() => void RequiredCallback function that will be invoked when the button has reached the final state
heightnumberThe height of the container. Default 70
widthnumberThe width of the container. Default 90% of the screen width
borderRadiusnumberThe border radius of the container and button (default: height / 2)
completeThresholdPercentagenumberDeterminates when onComplete should be invoked (defualt: 70)
onSwipeStart() => voidCallback that will be invoked when the user starts swiping
onSwipeEnd() => voidCallback that will be invoked when the user ends swiping
containerStyleStylePropStyling for the container
underlayStyleStylePropStyling for the underlay container
titleContainerPropsViewPropsAdditonal Props for the title container
titleContainerStyleStylePropStyling for the title container
titlePropsTextPropsAdditonal Props for the title text
titleStyleStylePropStyling for the title text
circleBackgroundColorstringBackground color for the circle
goBackToStartbololeanIf set to TRUE, after swipe is completed, the circle goes back to the start position

Keywords

FAQs

Last updated on 13 Apr 2022

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