I cannot remove underline in input text
To change or remove the underline we need to use the underlineColorAndroid prop. This is only necessary for Android as the iOS TextInput comes relatively unstyled. This can be set to any color, which includes transparent. To remove the line add underlineColorAndroid="transparent" to your TextInput .
Use inline styles to remove the underline of a Link in React, e.g. <Link style={{textDecoration: 'none'}} to="/"> . When the text decoration property is set to none , the underline of the link is removed.
Remove underlining To remove single underlining from words and spaces, select the underlined text and press Ctrl+U.
Underline a character in the item text in React DropDownButton component. Underline a particular character in a text can be handled in beforeItemRender event by adding <u> tag in between the text and given as innerHTML in li rendering. In the following example, C is underlined in the text Copy .
I guess it should be
underlineColorAndroid="transparent"
See the related issue https://github.com/facebook/react-native/issues/10108
Use underlineColorAndroid property of TextInput component
<TextInput underlineColorAndroid='transparent' placeholder="type here .."> TXT </TextInput>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With