簡體   English   中英

反應本機-android-Picker下划線

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM