/react-native-masked-input

A masked input for React Native.

Primary LanguageJavaScript

react-native-masked-input NPM version

Install

npm install react-native-masked-input@latest --save

Usage

All you need is to require the react-native-masked-input module and then use the <MaskedInput /> tag.

import MaskedInput from 'react-native-masked-input';

<MaskedInput maskType="money" currencySymbol="$" currencySeparator="," />

Props

Prop Type Description Values
maskType String Type of masked input. ['phone', 'money']
currencySymbol String Currency symbol when money. ['$', 'R$', '€', '£']
currencySeparator String Currency separator ['.', ',']

Roadmap

  • Decimal
  • Zipcode
  • Locales