thevsstech / react-native-masked-input

A pure javascript masked text and input text component for React-Native.
MIT License
13 stars 2 forks source link

NaN when using a dot as separator #1

Open sclavijo93 opened 3 years ago

sclavijo93 commented 3 years ago

Hi! FIrst of all thanks for mantain this library, I'm looking for the best number format input for react native and I come to your solution and I think is going to work for my project.

Now, about the issue: I'm getting NaN in the rawText when I use a dot (.) as separator. May be we can get the rawText as string when is going to return NaN instead?

For example, I type 1.250.000 and the onChangeText is returning NaN in the rawText. Or maybe is there another way to customize the getRawValue function when using 'money' as type?