【发布时间】:2018-07-14 22:12:19
【问题描述】:
我正在开发一个包含一些文本字段 (textInput) 的项目。我在这里遇到了 textInput 字段的问题。当我在 textInput 字段中输入时,文本有一个下划线,当我点击空格时它变得更暗,我想从中删除该下划线。
这是我的代码:
<TextInput
style={Style.InputStyle}
multiline={true}
placeholderTextColor={'#DC1938'}
placeholder={'Name'}
spellCheck={false}
underlineColorAndroid='rgba(255,0,0,0.3)'
inlineImageLeft='userred'
inlineImagePadding={25}
padding={15}
/>
【问题讨论】:
-
您需要提供一些代码。您的文本输入中的样式是什么?
-
Harikrishnan ,看看我下面的答案,它会解决你的问题。
-
看我需要红色的基线,但不想要下划线
-
在实现任何组件之前,请仔细阅读其docs。
-
@HarikrishnanS 你能从 TextInput 中删除下划线吗?
标签: react-native textinput underline