React native 如何删除选择器中的边界线(iOS-react native)

React native 如何删除选择器中的边界线(iOS-react native),react-native,picker,React Native,Picker,我需要从选择器中删除默认显示的边框。我设计了边框灰色,边框宽度为1.5。但它显示了一条细线的边界 import { Picker } from 'react-native'; <View style={{display: 'flex', flexDirection: 'row',borderColor:"transparent",alignItems:'center',marginBottom:13,}}> <Picker style={{paddingHoriz

我需要从选择器中删除默认显示的边框。我设计了边框灰色,边框宽度为1.5。但它显示了一条细线的边界

import { Picker } from 'react-native';

<View style={{display: 'flex', flexDirection: 'row',borderColor:"transparent",alignItems:'center',marginBottom:13,}}>
  <Picker
    style={{paddingHorizontal: 1,  borderWidth:1.5, borderRadius:4,borderRightWidth:1, borderColor: isValidNumber ? 'grey': 'red', color: 'red', flex:0.5}}
    itemStyle={{height: 47,backgroundColor: "white",borderColor:"transparent",fontSize: 15, fontWeight:'400'}}>
    <Picker.Item style={{borderColor:"transparent"}} key={dialCode} value={dialCode} label={dialCode} />
  </Picker>
<View>
从'react native'导入{Picker};

在我的例子中,我将{borderWidth:1;borderColor:'white';}设置为itemStyle,这有助于我隐藏这些行。

在我的例子中,我将{borderWidth:1;borderColor:'white';}设置为itemStyle,这有助于我隐藏这些行。

borderWidth:0添加为picker样式。borderWidth:0为e所需的picker样式。我为itemStyle添加了边框宽度:0。它不起作用。注意:上面的屏幕截图有两条边界线。一个是灰色,有1.5个字符。我需要它。另一个边框是需要删除的,添加
borderWidth:0
到选择器样式中。对于e,在选择器样式中需要borderWidth:0。我为itemStyle添加了边框宽度:0。它不起作用。注意:上面的屏幕截图有两条边界线。一个是灰色,有1.5个字符。我需要它。另一个问题是,是否需要删除该边界