vin*_*ayr 44

我想它应该是

underlineColorAndroid="transparent"
Run Code Online (Sandbox Code Playgroud)

请参阅相关问题https://github.com/facebook/react-native/issues/10108

  • 将此设置为道具,而不是样式. (4认同)

小智 19

使用TextInput组件的underlineColorAndroid属性

<TextInput underlineColorAndroid='transparent'
           placeholder="type here ..">
 TXT
</TextInput>
Run Code Online (Sandbox Code Playgroud)


小智 6

TextField 中的以下道具对我有用

underlineColorAndroid='rgba(0,0,0,0)' 
Run Code Online (Sandbox Code Playgroud)


小智 5

我找到了另一种直接在 TextInput 上附加 InputContainer 样式的方法:

inputContainerStyle={{borderBottomWidth:0}}
Run Code Online (Sandbox Code Playgroud)