2017-04-16 24 views
1

的底線我使用的代碼樣式:如何刪除的TextInput

const styles = { 
    inputStyle: { 
     color: '#000', 
     paddingRight: 5, 
     paddingLeft: 5, 
     fontSize: 18, 
     lineHeight: 23, 
     flex: 2 
    }, 

但它有一個底線,就像右邊的照片,我怎麼刪除它,它表明像左圖? enter image description here

任何幫助將提前讚賞,感謝。

回答

3

簡短的回答:設置<TextInput underlineColorAndroid={'transparent'} />

+0

我忘了說,我編譯Android設備上,感謝您的回答,它的工作原理! –