[英]react native - android - Picker has underline
Picker
樣式有問題-它的下划線像Android上的TextInput
一樣,但是underlineColorAndroid = 'transparent'
或其他任何顏色都不起作用。
我使用的Picker
從NativeBase,而這個Picker
代替ReactNative Picker
。 這是我的代碼。 我已經嘗試用Input
(NativeBase)或帶有underlineColorAndroid
屬性的TextInput
包裹Item
,因為只有TextInput可以具有此道具,但是沒有運氣。 使用bottomBorderColor更改組件的樣式也不會產生結果。 誰能幫我嗎?
<View>
<Form>
<Item inlineLabel>
<Label>Region</Label>
<Picker
style={{ alignItems: 'flex-end', width: 200 }}
placeholder='...'
>
<Picker.Item label="..."/> //this first Item rendered as underlined
</Picker>
</Item>
</Form>
</View>
將style={{borderColor:"transparent"}}
到<Item>
標簽。
<View>
<Form>
<Item inlineLabel style={{borderColor: "transparent"}}>
<Label>Region</Label>
<Picker
style={{ alignItems: 'flex-end', width: 200 }}
placeholder='...'
>
<Picker.Item label="..."/> //this first Item rendered as underlined
</Picker>
</Item>
</Form>
</View>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.