Description
react-native-masked-text provides masked text and masked input components for React Native. A mask formats what the user types or what is displayed, for example phone numbers, documents and card numbers. The README describes a TextInputMask component for input and a text variant for display. The package has built-in masks for Brazilian mobile phone numbers, which can use a DDD area code, and international phone numbers. It also includes masks for CPF and CNPJ, the Brazilian personal and company tax numbers, with an isValid method that checks them. The credit card mask supports Visa and Mastercard, American Express and Diners layouts, with an option to obfuscate the middle digits. A custom mask lets you define a pattern, where 9 accepts a digit, A accepts a letter, S accepts a letter or digit, and an asterisk accepts any character except whitespace. The README says the package supports React Native 0.32 or newer. The author says at the top of the README that the project will no longer receive updates, because they no longer develop JavaScript apps.…
Highlights
- Masked text and masked input components
- Brazilian phone, CPF and CNPJ masks with validation
- Credit card masks with obfuscation
- Custom masks from a simple pattern
- Supports React Native 0.32 and newer
Ratings & Reviews
No ratings yet
Be the first to rate react-native-masked-text.
People also visit
react-native-masked-text FAQ
What does the package do?
It adds masked text and masked input components to React Native, for formats such as phone numbers and tax IDs.
Is it still maintained?
No. The README says the author no longer develops JavaScript apps and the repository will not receive updates.
Which masks are included?
Phone numbers, CPF, CNPJ, credit cards, and custom patterns where 9 is a digit and A is a letter.
Which React Native version is needed?
Version 0.32.0 or newer, according to the README.
What are the best react-native-masked-text alternatives?
Popular alternatives to react-native-masked-text include react-native-mask-input, react-native-advanced-input-mask and react-text-mask. See all react-native-masked-text alternatives


















