@dillionverma/react-native-swipe-button
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@dillionverma/react-native-swipe-button", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A UI component for displaying a button that can be swiped.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# @dillionverma/react-native-swipe-button | ||
# React Native Swipe Button | ||
@@ -27,11 +27,11 @@ This component can be used to have an animated tabbar in your react-native app. | ||
| title | string **Required** | The text that will be displayed inside the button | | ||
| onSwipeStart | () => void | Callback that will be invoked when the user starts swiping | | ||
| onSwipeEnd | () => void | Callback that will be invoked when the user ends swiping | | ||
| onComplete | () => void **Required** | Callback function that will be invoked when the button has reached the final state | | ||
| height | number | The height of the container. Default 70 | | ||
| width | number | The width of the container. Default 90% of the screen width | | ||
| borderRadius | number | The border radius of the container and button (default: height / 2) | | ||
| completeThresholdPercentage | number | Determinates when onComplete should be invoked (defualt: 70) | | ||
| onSwipeStart | () => void | Callback that will be invoked when the user starts swiping | | ||
| onSwipeEnd | () => void | Callback that will be invoked when the user ends swiping | | ||
| completeThresholdPercentage | number | Determinates when onComplete should be invoked (default: 100) | | ||
| containerStyle | StyleProp<ViewStyle> | Styling for the container | | ||
| underlayStyle | StyleProp<ViewStyle> | Styling for the underlay container | | ||
| iconContainerStyle | StyleProp<ViewStyle> | Styling for the icon container | | ||
| titleContainerProps | ViewProps | Additonal Props for the title container | | ||
@@ -38,0 +38,0 @@ | titleContainerStyle | StyleProp<ViewStyle> | Styling for the title container | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
674278
24
592