1.1.3 • Published 3 years ago

@dillionverma/react-native-swipe-button v1.1.3

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

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