Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"underlineColorAndroid is not a valid style property" error in react-native android app

I want to remove the underline style from my TextInput component. I used the underlineColorAndroid property, but it's not working.

enter image description here

like image 429
Rathore Avatar asked Feb 22 '16 14:02

Rathore


1 Answers

underlineColorAndroid is a prop of TextInput, not a React Native style.

Here's an example of how to use it:

<TextInput underlineColorAndroid={'transparent'} value={this.state.text} />
like image 159
Alex L Avatar answered Nov 17 '22 02:11

Alex L