underlineColorAndroid ='transparent'不适用于基于本机的输入字段?

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

underlineColorAndroid道具不起作用。输入字段仍显示灰色下划线

<Item style='name_input_container'>
  <Input style={styles.name_input}
  autoCorrect={false} 
  placeholder='Enter name'
  selectionColor='#ffa500'
  textAlign={'center'}
  underlineColorAndroid: 'transparent'
  />
</Item>
react-native native-base
1个回答
1
投票

underlineColorAndroid: 'transparent'更改为underlineColorAndroid='transparent',所以最终输出将像:

© www.soinside.com 2019 - 2024. All rights reserved.