Skip to content

TextInput (underlineColor) is not working in android devices #1138

@anveshreddy87

Description

@anveshreddy87

Environment

"react": "16.8.3",
"react-native": "0.59.8",
"react-native-paper": "2.16.0",

Description

In TextInput Component underlineColor is not working as expected. i tried different ways but underlineColor is not reflecting in android devices. i given hex value, rgba value, string color value. still same thing its not reflecting.

I don't want to show underline in android device while user starts entering the TextInput box.
Please help to fix this issue...i attached the sample expo and code.

Reproducible Demo

https://snack.expo.io/@anveshreddy8787/paper-textinput-refs

Sample Code:
<TextInput mode = "outlined"
ref = {this.lastName}
underlineColor='#ff0000'
value = {
this.state.lastName
}
style = {
{
marginVertical: 20,
marginRight: 40,
marginLeft: 20,
}
}
label = "Last Name"
theme = {
{
colors: {
primary: 'purple',
background: 'white'
}
}
}

  keyboardType = 'default'
  returnKeyType = 'next'
  autoCapitalize = 'words'
  onChangeText = {(value) => this.setState({lastName: value})}
  onSubmitEditing = {(event) => {this.dateOfBirth.current.getElement().focus()}}
  /> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions