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
309 stars 31 forks source link

Value should be optional and inherited from InputProps #29

Closed whitestranger7 closed 2 years ago

whitestranger7 commented 2 years ago

Motivation: Since react native TextInput component could contain undefined value, there's no actual reason to keep value as required field. Anyway library checks if value exist and if it not exist - replaces this with empty string. It might be misunderstanding in types when using 3rd party libraries that controls inputs, like react-hook-form or formik. Please, consider to make this value optional for keeping MaskedInput consistent and inherit InputProps from react-native correctly

CaioQuirinoMedeiros commented 2 years ago

released in v1.2.2