react-native android app中的"underlineColorAndroid不是有效的样式属性"错误

Rat*_*ore 17 android react-native

在此输入图像描述

我想从TextInput组件中删除下划线样式.我使用了"underlineColorAndroid"属性,但它不起作用.

Ale*_*x L 49

underlineColorAndroid 是TextInput的支柱,而不是React Native风格.

以下是如何使用它的示例:

<TextInput underlineColorAndroid={'transparent'} value={this.state.text} />