176
react-native-text-input-mask
in progress
Activity Feed
Sort by
Giovane de Loredo
You need statically link to work on iOS. I've written a plugin for this (it doesn't follow all best practices, but it works): https://gist.github.com/gloredo/ac86934026ec2b88b85c8044b0e6edaa
Adriano Moreira
Giovane de Loredo: Where do I insert this file?
Evan Bacon
in progress
Linus Unnebäck
The RIFM (React Input Format & Mask) library has a hook that works with any input at all. This means that it can work with the React Native text field without having any native dependencies!

Igor Kharabet
Linus Unnebäck: Unfortunately it can't. I tried and it didn't work for me in RN project. Looking at the code i found that it's because it uses DOM events heavily. Otherwise, a real gem for ReactJS devs.
Linus Unnebäck
Igor Kharabet: Ah, sorry about the missinformation. This should be something that should be solvable though 🤔
If I get the time I'll look into it...
Igor Kharabet
Linus Unnebäck: yeah, actually I tried to achieve that in my fork -
and it kind of works - though, in my case it was quite slow and unstable.. maybe it's because it was just a minimal and easiest way to just make it work in RN - I'm pretty sure there are more elegant and efficient ways to do that, but I'm not feeling skilled enough for it 😅
Giau. Tran Minh
Up!!!
Gabriel Maia
I use https://github.com/benhurott/react-native-masked-text and it works very well with Expo
SDP190
Gabriel Maia: Since its javascript only implementation it sounds a bit slow
Gabriel Maia
SDP190: I used it and it's not slow, give it a try
SDP190
Gabriel Maia: K, will try.
Cooper Brown
Please support this!!
Leonardo Dino
any updates on this one? Brent Vatne
i tried to implement a new one in JS but understood why there aren't many...
Gabriel Schmitt
That would be super useful!