# react-native-touchable-moti

> React Native Touchable with Custom Animations

Latest version **1.0.8** (published 2021-02-16) · MIT license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2021-02-16 |
| First published | 2021-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 771 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Nur Fikri |
| Maintainers | codingki |
| Keywords | react-native, touchable, pressable, moti, button, animation, touchablescale, touchablespring |

## Links

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

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.0.8 (latest) — 2021-02-16
- 1.0.7 — 2021-02-09
- 1.0.6 — 2021-02-09
- 1.0.5 — 2021-02-09
- 1.0.4 — 2021-02-09
- 1.0.3 — 2021-02-09
- 1.0.2 — 2021-02-09
- 1.0.1 — 2021-02-09
- 1.0.0 — 2021-02-09

## README

# React Native Animated Touchable Component

![Preview](preview.gif)

# Documentation

- [Example](#Example)
- [Installation](#Installation)
- [Web Support](#Web)
- [Props](#Props)
- [Usage](#Usage)

## Example

[Example](https://github.com/codingki/react-native-touchable-moti)

## Installation

This component uses [Moti](https://moti.vercel.app/), which uses Reanimated 2 so you need to install Moti and Reanimated 2.

### 1. Install Moti

    npm install moti

### 2. Install Reanimated 2

Moti requires that you install `react-native-reanimated`. The minimum version of Reanimated it's been tested on is `2.0.0-rc.0`.

#### If you're using Expo

Please follow the [Expo instructions](https://docs.expo.io/versions/latest/sdk/reanimated/#experimental-support-for-v2) for installing `react-native-reanimated` v2.

You'll need at least [Expo SDK 40](https://docs.expo.io/workflow/upgrading-expo-sdk-walkthrough/).

#### If you aren't using Expo

Please follow Reanimated's [installation instructions](https://docs.swmansion.com/react-native-reanimated/docs/installation) for v2.

### 3. Install the package

    npm install react-native-touchable-moti

## Web

Follow this instruction [https://moti.fyi/web](https://moti.fyi/web)

## Props

| Props                                                          | Required | TochableScale Default Value | TouchableLift Default Value |
| -------------------------------------------------------------- | -------- | --------------------------- | --------------------------- |
| [PressableProps](https://reactnative.dev/docs/pressable#props) |          |                             |                             |
| value                                                          | no       | 1.1                         | -10                         |

## Usage

### Import

    import { TouchableScale, TouchableLift } from  'react-native-touchable-moti';

### TouchableScale

    <TouchableScale style={styles.button} onPress={}>
        <Text style={styles.text}>Press me!</Text>
    </TouchableScale>

### TouchableLift

    <TouchableLift style={styles.button} onPress={}>
        <Text style={styles.text}>Press me!</Text>
    </TouchableLift>

You can use it as a wrapper too, like this

    <TouchableLift onPress={}>
        <View style={styles.button}>
    	    <Text style={styles.text}>Press me!</Text>
        </View>
    </TouchableLift>

Big thanks to [Fernando Rojo](https://twitter.com/fernandotherojo)

Try [Moti](https://moti.vercel.app/)

Reach me on twitter [@kikiding](https://twitter.com/kikiding)

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