gpt4 book ai didi

react-native - TextInput 不需要的下划线

转载 作者:行者123 更新时间:2023-12-04 00:32:46 25 4
gpt4 key购买 nike

我正在开发一个包含一些文本字段 (textInput) 的项目。我在这里遇到了 textInput 字段的问题。当我在 textInput 字段中键入时,文本有一条下划线,当我点击空格时它会变得更暗,我想从中删除该下划线。

截图如下: enter image description here

这是我的代码:

<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}
/>

最佳答案

尝试跟随 Prop 。

spellCheck={false}
autoCorrect={false}

请引用以下链接:

disable spellcheck in react-native TextInput

关于react-native - TextInput 不需要的下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48616065/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com