React-native-paper: TextInput active colour ?

Created on 27 Apr 2019  路  1Comment  路  Source: callstack/react-native-paper

Hi,

How can I modify the TextInputs active underline colour?

Cheers,

Alex

question

Most helpful comment

To change inactive color you can pass underlineColor prop.
To change active color you can pass theme object with primary color.

Example:

<TextInput
     label="Text input"
     placeholder="Type something"
     value={this.state.text}
     theme={{ colors: { primary: 'green' } }}
     underlineColor="green"
/>

>All comments

To change inactive color you can pass underlineColor prop.
To change active color you can pass theme object with primary color.

Example:

<TextInput
     label="Text input"
     placeholder="Type something"
     value={this.state.text}
     theme={{ colors: { primary: 'green' } }}
     underlineColor="green"
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

makhataibar picture makhataibar  路  4Comments

mihaidaviddev picture mihaidaviddev  路  3Comments

ZhengYuTay picture ZhengYuTay  路  3Comments

talaikis picture talaikis  路  3Comments

zxccvvv picture zxccvvv  路  4Comments