在 react-native-paper 的 TextInput 中遇到问题,当我将其背景设置为透明时,标签使用了直线效果

问题描述 投票:0回答:0

面对 react-native-paper 的 TextInput 问题,当我将其背景设置为透明时,标签使用了直线效果。 当背景颜色设置为透明时,如何从标签文本中去除这种划线效果, 当颜色设置为白色时它工作正常,但是当我将颜色更改为透明时,问题出现了。

附上我的样式代码和问题截图。

 inputStyleOutlined: {
   minHeight: moderateScale(38.4),
   color: COLORS.secondary,
   fontWeight: FONT_WEIGHT.fontWeight4,
   fontSize: moderateScale(FONT_SIZE.font_14),
   letterSpacing: moderateScale(0.2),
   width: "100%",
   backgroundColor: COLORS.transparent,
 }

reactjs react-native textinput react-native-paper react-native-pager-view
© www.soinside.com 2019 - 2024. All rights reserved.