react-native-text-input-mask
Version:
Text input mask for React Native on iOS and Android.
37 lines (24 loc) • 1.12 kB
Markdown
# react-native-text-input-mask
Text input mask for React Native on iOS and Android.
## Examples


## Setup
```bash
npm install --save react-native-text-input-mask
react-native link react-native-text-input-mask
```
For RN 0.47 use 0.3.2 version – `npm install --save react-native-text-input-mask@0.3.2`
## Usage
```javascript
import TextInputMask from 'react-native-text-input-mask';
...
<TextInputMask 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/).