React-native: [Android] <TextInput> can't set border's style.

Created on 5 Oct 2015  路  7Comments  路  Source: facebook/react-native

Hi, How to set <TextInput> style ?

borderColor seems no effect, and how to remove default bottom border?

Locked

Most helpful comment

Previous given link is now broken.

solution is to use underlineColorAndroid="transparent" on the TextInput

source: https://facebook.github.io/react-native/releases/0.26/docs/known-issues.html#text-input-border (archive)

All 7 comments

The default bottom border cannot be removed, you can make it transparent though (by setting underlineTextColor).
Borders are currently not supported on TextInputs, bout you can wrap your TextInput in a View and add borders to that component.

@andreicoman11 - could you add that to the known issues docs?

got it

Set multiline={true} in the text input properties

Previous given link is now broken.

solution is to use underlineColorAndroid="transparent" on the TextInput

source: https://facebook.github.io/react-native/releases/0.26/docs/known-issues.html#text-input-border (archive)

Was this page helpful?
0 / 5 - 0 ratings