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

@arelstone/react-native-swipe-button

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

@arelstone/react-native-swipe-button

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

0.3.0
latest
72

Supply Chain Security

100

Vulnerability

79

Quality

76

Maintenance

100

License

Version published
Weekly downloads
106
-29.33%
Maintainers
1
Weekly downloads
 
Created
Issues
4

@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

FAQs

Package last updated on 13 Apr 2022

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