react-native-phone-number-input
react-native-phone-number-input copied to clipboard
I cannot change color on dropdown list icon because it's image that's why I am not able to changing it and also I cannot change placeholder text color please pass a prop that we will use on it
<PhoneInput
ref={phoneInput}
defaultValue={value}
defaultCode="US"
layout="first"
onChangeText={text => {
setValue(text);
}}
onChangeFormattedText={text => {
setFormattedValue(text);
setCountryCode(phoneInput.current?.getCountryCode() || '');
}}
countryPickerProps={{withAlphaFilter: true}}
// withDarkTheme
withShadow
autoFocus
flagButtonStyle={{
backgroundColor: '#000',
}}
containerStyle={{height: 60, borderRadius: 15}}
textContainerStyle={{
borderTopRightRadius: 15,
borderBottomRightRadius: 15,
}}
textInputStyle={{height: 60, top: 1}}
placeholder={'Enter Phone Number'}
/>