akinncar / react-native-mask-text

🎭 A React Native and Expo library to mask text and inputs
MIT License
404 stars 36 forks source link

Typing delay #311

Open natanfoleto opened 2 months ago

natanfoleto commented 2 months ago

I'm using the currency mask, when I type very quickly the value has a delay to be set, and then the value is wrong. For the value to be correct I have to type very slowly, if I type quickly it puts the wrong value in the input.

In the video example, I use the value 30.50 as an example. First I type slowly and it is correct, but if I type quickly it is wrong, watch.

https://github.com/akinncar/react-native-mask-text/assets/39577730/795aa875-5423-4dee-8103-85a28ac25ccb

angelxmoreno commented 2 months ago

some code would help. There are a few conditions in which this behavior would happen. For instance, a HOC setting the value and MaskedTextInput removing the non-numeric characters.

angelxmoreno commented 2 months ago

@natanfoleto ( and anyone else experiencing this ) I created an Expo Snack and was disappointed to find out that, this issue is inherited from react-native itself.