thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
394 stars 447 forks source link

selectionColor is not working #83

Open idoor88 opened 5 years ago

idoor88 commented 5 years ago

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

haquespericorn commented 1 year ago

Try this

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