# @dillionverma/react-native-swipe-button

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

Latest version **1.1.3** (published 2021-06-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dillionverma/react-native-swipe-button
pnpm add @dillionverma/react-native-swipe-button
yarn add @dillionverma/react-native-swipe-button
bun add @dillionverma/react-native-swipe-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2021-06-10 |
| First published | 2021-06-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 149.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dillion Verma |
| Maintainers | dillionverma |
| Keywords | react native, react native component, component, swipe, button, mobile, ios, android, ui, animation |

## Links

- npm: https://www.npmjs.com/package/@dillionverma/react-native-swipe-button
- Repository: https://github.com/dillionverma/react-native-swipe-button
- Issues: https://github.com/dillionverma/react-native-swipe-button/issues
- npm.io page: https://npm.io/package/@dillionverma/react-native-swipe-button

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2021-06-10
- 1.1.2 — 2021-06-10
- 1.1.1 — 2021-06-10
- 1.1.0 — 2021-06-10
- 1.0.0 — 2021-06-09

## README

# React Native Swipe Button

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

![npm](https://shields.cdn.bka.li/npm/dt/@dillionverma/react-native-swipe-button?style=for-the-badge)
![npm (scoped)](https://shields.cdn.bka.li/npm/v/@dillionverma/react-native-swipe-button?label=version&style=for-the-badge)
![GitHub issues](https://shields.cdn.bka.li/github/issues/dillionverma/react-native-swipe-button?style=for-the-badge)
![GitHub pull requests](https://shields.cdn.bka.li/github/issues-pr/dillionverma/react-native-swipe-button?style=for-the-badge)

![@dillionverma/react-native-swipe-button](https://raw.githubusercontent.com/dillionverma/react-native-swipe-button/master/docs/example.gif)

## Install

```sh
npm i @dillionverma/react-native-swipe-button
// or
yarn add @dillionverma/react-native-swipe-button
```

## Props

| Prop                        | Type                    | Description                                                                        |
| --------------------------- | ----------------------- | ---------------------------------------------------------------------------------- |
| 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                                            |
| borderRadius                | number                  | The border radius of the container and button (default: height / 2)                |
| 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                                            |
| titleContainerStyle         | StyleProp<ViewStyle>    | Styling for the title container                                                    |
| titleProps                  | TextProps               | Additonal Props for the title text                                                 |
| titleStyle                  | StyleProp<TextStyle>    | Styling for the title text                                                         |

---
_Source: https://npm.io/package/@dillionverma/react-native-swipe-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
