react-native-phone-input
react-native-phone-input copied to clipboard
maxlength support
For example:
<PhoneInput
maxLength={14}
...
Hey @arthedza did you find a fix for this?
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} ></ReactNativePhoneInput>
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}}