# react-native-touchable-swipe

> Much like the other React Native Touchable components however takes swipe callbacks as well.

Latest version **1.0.0** (published 2018-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-touchable-swipe
pnpm add react-native-touchable-swipe
yarn add react-native-touchable-swipe
bun add react-native-touchable-swipe
```

## 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.0.0 |
| Published | 2018-08-24 |
| First published | 2018-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ian Briggs |
| Maintainers | normalize |
| Keywords | react native, react, swipe, touch, swipeable |

## Links

- npm: https://www.npmjs.com/package/react-native-touchable-swipe
- Repository: https://github.com/normal1ze/react-native-touchable-swipe
- Homepage: https://github.com/normal1ze/react-native-touchable-swipe#readme
- Issues: https://github.com/normal1ze/react-native-touchable-swipe/issues
- npm.io page: https://npm.io/package/react-native-touchable-swipe

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-08-24

## README

Much like React Native's [TouchableWithoutFeedback](https://facebook.github.io/react-native/docs/touchablewithoutfeedback) this component allows touch events with combined swipe events.

It surrounds a View that receives events from React Native's [PanResponder](https://facebook.github.io/react-native/docs/panresponder).

Make no mistake, there is no magic, this is simply a nimble, javascript only response to having multiple touch events on the same component using what we already know from the PanResponder documentation.

### Installation

`npm install react-native-touchable-swipe --save`

### Usage

    import TouchableSwipe from 'react-native-touchable-swipe'

    <TouchableSwipe
      onPress={() => alert('You Pressed')}
      onSwipeLeft={() => alert('You Swiped Left')}
      onSwipeRight={() => alert('You Swiped Right')}
      onSwipeUp={() => alert('You Swiped Up')}
      onSwipeDown={() => alert('You Swiped Down')}>

      <View>
        <Text>This is my touchable element</Text>
      </View>

    </TouchableSwipe>

### Config

You can also pass in a `config` prop that can help tune the TouchableSwipe component.

    <TouchableSwipe config={{tapThreshold: 10}}></TouchableSwipe>

| Name | Default | Description |
| ---- | ------- | ----------- |
| tapThreshold | 5 | The distance of movement that is considered a tap. Outside of this movement the gesture becomes a slide |


### View props

TouchableSwipe takes the same props as a normal React Native View component.

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