我正在使用 React Native Paper 的 TextInput 组件。但即使我输入了 borderwidth:0
,我还是在 UI 中得到了轮廓。
当我们进行输入时(当数字键盘打开时),此内容不会出现
有人可以告诉我如何删除它吗?
render={({field: {onChange, onBlur, value}}) => (
<TextInput
keyboardType="decimal-pad"
autoFocus
//type= "outlined"
maxLength={10}
left={element}
placeholder="Phone Number"
style={{
width: s(250),
height: s(35),
borderRadius: s(20),
backgroundColor: theme.colors.white,
//borderWidth: 0,
}}
onBlur={onBlur}
theme={{
roundness: s(20),
}}
onChangeText={onChange}
value={value}
/>
)}
最佳答案
添加 TextInput 的这些属性
activeUnderlineColor="white" underlineColor="transparent"
关于android - 在 React Native 中设置 React-Native-Paper 组件的样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74938458/