Open arthedza opened 4 years ago
Hey @arthedza did you find a fix for this?
Hey @arthedza did you find a fix for this?
No, but I've found a PR for maxLength support.
Hi. You can pass maxLength in textProps. <ReactNativePhoneInput ref={inputRef} initialValue={value} style={input} offset={30} textStyle={textStyle} initialCountry={'no'} textProps={maxLength: 10} onPressFlag={() => { handleOpenDropdown(); }} onChangePhoneNumber={onChangePhoneNumber}
not working
how can i maxlength(10) in react-native-phone-number-input.
You can use a prop:
textInputProps={{ maxLength: 12 }}
This works
This works: textInputProps={{maxLength: 12}}
For example: