Why another mask text package
I created another mask text package to use in React Native called react-native-mask-text
In the last months, I have been work a lot with React Native, and especially Expo on my personal projects. I saw a lot of problems using some packages that don't work as expected with Expo, and with a multiplatform coverage (iOS, Android, and Web). Also, I participate frequently in some communities of mobile and web development - like React Brasil and Expo Developers - and I saw other developers constantly saying about problems with mask text and input on this environment, then I decided to made research to assess current libraries with text mask.
I found some libraries that have features that we want, mask text and input, but I picked two to focus the study and use in the example, and you will understand how I arrived at the point of creating another one.
This is one of the most popular mask packages for React Native. I personally was using it in the old projects since RN 0.42 to 0.62. This package is really good and resolves a big problem, another side, it has a BIG PROBLEM!
If you enter on lib repository, you will see this on README.md
Well, not this time, people already tried to update this library, but I understood that will be not possible anymore. If the library doesn't support your problem, and you can't improve the project, this package is not for you. Let's analyze another mask text package.
Another cool library to mask text is react-native-text-input-mask, but like the name suggests, this package can only mask TextInput components withou other extensions. One of you upsides - but also a downside - is that it makes with native code.
Releases, and about the future
The first official release was made in May, 20 - 2021, and I published all informations on my twitter account, that's where you'll find out about upcoming releases and my open-source works.
Currently we have only core features (custom mask for components and mask functions). I already still implementing new features, opening issues and make PR's all week, and publicizing tutorials and usage around the package to grow it. I believe that package can be one of - if not the - best packages for mask text to React Native community in the near future.
If you are looking to help React Native community, don't forget to check repository on github and npm package. My DM is always open to have a conversation and will be awesome if you can try to solve an issue, make a pull request, or give some feedback about package usage!
I hope you have enjoyed this content, don't forget to subscribe on my substack and share this content that be very valuable to other people like you!