0.3.0 • Published 3 years ago

@arelstone/react-native-swipe-button v0.3.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

@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