issues
search
bhrott
/
react-native-masked-text
A pure javascript masked text and input text component for React-Native.
MIT License
1.61k
stars
249
forks
source link
feat(documents): implement automatic document
#244
Closed
duspada
closed
3 years ago
duspada
commented
3 years ago
PR Description
Let the lib decide if the input is CPF or CNPJ.
Problem solved
If an input text can be CPF "OR" CNPJ, you should use the "document" mask, and let the lib decide which one is it. If it is >13 digits, AND not a valid cpf, the lib should try a valid CNPJ - so, lets change the mask type.
Change type
[x] New Feature
[ ] Bug fix
[ ] Breaking change
Checklist 🚨
[x] has tests
[x] tested on iOS
[x] tested on Android
PR Description
Problem solved
Change type
Checklist 🚨