react-native-phone-input
react-native-phone-input copied to clipboard
selectionColor is not working
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
Try this
<PhoneInput textInputProps={{cursorColor: 'red'}} />