react-native-text-input-mask / react-native-text-input-mask

Text input mask for React Native, Android and iOS
MIT License
1.2k stars 309 forks source link

Spaces in mask is causing the numbers to render twice #274

Open KrishnaCaw opened 2 years ago

KrishnaCaw commented 2 years ago

<TextInputMask onChangeText={(formatted, extracted) => { console.log(formatted); console.log(extracted); }} mask={'+91 [00] [0000] [0000]'} />

adding spaces in mask causing them to render twice. after any space if i enter any number it gets rendered twice and i have to remove extra number and then enter the correct number

but working with -

<TextInputMask onChangeText={(formatted, extracted) => { console.log(formatted); // +1 (123) 456-78-90 console.log(extracted); // 1234567890 }} mask={'+91-[00]-[0000]-[0000]'} />

"react-native-text-input-mask": "^3.1.4", "react-native": "0.67.2",

Android 12

DePavlenko commented 1 year ago

I experience the same issue, any updates?