react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

TextInput active colour ?

Open AlexMachin1997 opened this issue 7 years ago • 1 comments

Hi,

How can I modify the TextInputs active underline colour?

Cheers,

Alex

AlexMachin1997 avatar Apr 27 '19 21:04 AlexMachin1997

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

iyadthayyil avatar Apr 28 '19 09:04 iyadthayyil