react-native-phone-input icon indicating copy to clipboard operation
react-native-phone-input copied to clipboard

selectionColor is not working

Open idoor88 opened this issue 6 years ago • 1 comments

I am trying to change the color of the cursor when it is highlighted, for TextInput component, the selectionColor style property works, but for PhoneInput, it does not work on iOS, but works on android: <PhoneInput style={{marginTop:8, marginBottom: 7, selectionColor: 'yellow'}} textStyle={{color: 'white', fontSize: 20}} selectionColor={'yellow'}

I tried both ways as above, but neither changes the cursor or caret color to yellow, it always uses the color of blue.

Thanks idoor

idoor88 avatar Jan 26 '19 15:01 idoor88

Try this

<PhoneInput textInputProps={{cursorColor: 'red'}} />

haquespericorn avatar Mar 30 '23 12:03 haquespericorn