CaioQuirinoMedeiros / react-native-mask-input

🎭:iphone: A simple and effective Text Input with mask for ReactNative on iOS and Android. Includes obfuscation characters feature.
https://www.npmjs.com/package/react-native-mask-input
MIT License
305 stars 31 forks source link

delete not working when stand at the end of any part of the formated value i #48

Closed khaled961 closed 6 months ago

khaled961 commented 7 months ago

i want when i stand at the end of any part of the formatted value when I delete last number from the previous part to be deleted

https://github.com/CaioQuirinoMedeiros/react-native-mask-input/assets/54375389/32fce310-db09-440c-bf78-4c592ff785cf

CaioQuirinoMedeiros commented 7 months ago

You must be doing something wrong, prove it with reproducible code

CaioQuirinoMedeiros commented 6 months ago

and yet I haven't seen a reproducible code 💁🏼‍♂️

chizhkov422 commented 6 months ago

I also have the same issue.

https://github.com/CaioQuirinoMedeiros/react-native-mask-input/assets/40992073/9ee6636f-fd8d-4906-b2d7-bfc49214ae4d

<TextInputMask value={value} onChangeText={(formatted, extracted) => { onChangeText(extracted || ""); }} mask={["(", /\d/, /\d/, ")", " ", /\d/, /\d/, /\d/, " ", /\d/, /\d/, " ", /\d/, /\d/]} maxLength={14} placeholderTextColor="#BDBDBD" />

CaioQuirinoMedeiros commented 6 months ago

See? your mask is completely wrong, read the fucking readme

chizhkov422 commented 6 months ago

@CaioQuirinoMedeiros This is a component with an example mask from the usage block in readme.

image

The problem still here.

https://github.com/CaioQuirinoMedeiros/react-native-mask-input/assets/40992073/2723fbd1-c786-4baa-83c1-a1e809d7eee3