# @mypharma/react-native-text-input-mask

> Text input mask for React Native on iOS and Android.

Latest version **0.5.8** (published 2018-06-01) · 0 weekly downloads

## Install

```sh
npm install @mypharma/react-native-text-input-mask
pnpm add @mypharma/react-native-text-input-mask
yarn add @mypharma/react-native-text-input-mask
bun add @mypharma/react-native-text-input-mask
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.8 |
| Published | 2018-06-01 |
| First published | 2018-02-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 358.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mypharma |
| Keywords | react, native, mask, text input, android, ios |

## Links

- npm: https://www.npmjs.com/package/@mypharma/react-native-text-input-mask
- Repository: https://github.com/mypharmabr/react-native-text-input-mask
- Homepage: https://github.com/mypharmabr/react-native-text-input-mask#readme
- Issues: https://github.com/mypharmabr/react-native-text-input-mask/issues
- npm.io page: https://npm.io/package/@mypharma/react-native-text-input-mask

## 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

- 0.5.8 (latest) — 2018-06-01
- 0.5.7 — 2018-06-01
- 0.5.6 — 2018-06-01
- 0.5.5 — 2018-03-20
- 0.5.4 — 2018-02-14
- 0.5.3 — 2018-02-14
- 0.5.2 — 2018-02-14

## README

# react-native-text-input-mask
Text input mask for React Native on iOS and Android.

## Examples

![React Native Text Input Mask iOS](https://s3.amazonaws.com/react-native-text-input-mask/react-native-text-input-mask-ios.gif)
![React Native Text Input Mask Android](https://s3.amazonaws.com/react-native-text-input-mask/react-native-text-input-mask-android-updated.gif)

## Setup

```bash
npm install --save @mypharma/react-native-text-input-mask
react-native link @mypharma/react-native-text-input-mask
```

For RN 0.47 use 0.3.2 version – `npm install --save @mypharma/react-native-text-input-mask@0.3.2`

## Usage

```javascript
import TextInputMask from '@mypharma/react-native-text-input-mask';
...
<TextInputMask
  refInput={ref => { this.input = ref }}
  onChangeText={(formatted, extracted) => {
    console.log(formatted) // +1 (123) 456-78-90
    console.log(extracted) // 1234567890
  }}
  mask={"+1 ([000]) [000] [00] [00]"}
/>
...
```

## More info

[RedMadRobot Input Mask Android](https://github.com/RedMadRobot/input-mask-android)

[RedMadRobot Input Mask IOS](https://github.com/RedMadRobot/input-mask-ios)

## Versioning

This project uses semantic versioning: MAJOR.MINOR.PATCH.
This means that releases within the same MAJOR version are always backwards compatible. For more info see [semver.org](http://semver.org/).

---
_Source: https://npm.io/package/@mypharma/react-native-text-input-mask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
