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
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, likereact-hook-form
orformik
. Please, consider to make this value optional for keepingMaskedInput
consistent and inheritInputProps
from react-native correctly