Skip to content

Textfield underline color #1826

Answered by ethanshar
gabrielporcher asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gabrielporcher
That's actually a bug.
I pushed a PR with a fix (#1836)

The right way to set the underlineColor is to use the fieldStyle prop.

The current default style comes from the preset prop and you couldn't override it (that's the bug)
Till this is fixed, you can override the preset and pass null, this will get you clean TextField you can customize as you wish.
Then you'll just need to pass the fieldStyle with the desired style.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ethanshar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants