Rathore
Rathore

Reputation: 1988

"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

Upvotes: 17

Views: 11910

Answers (1)

Alex L
Alex L

Reputation: 799

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} />

Upvotes: 50

Related Questions