React Native 之 TextInput组件去掉下划线

前端之家收集整理的这篇文章主要介绍了React Native 之 TextInput组件去掉下划线前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在使用RN开发中,TextInput 组件使用,iOS 没有下划线 而安卓有下划线 ,特此需要设置

<@H_502_5@View @H_502_5@style @H_502_5@=@H_502_5@{ETTLogStyles.log_input_top@H_502_5@}>@H_502_5@
    <@H_502_5@TextInput @H_502_5@style @H_502_5@=@H_502_5@{this@H_502_5@.inputStyle@H_502_5@()} @H_502_5@placeholder@H_502_5@=@H_502_5@{this@H_502_5@.placeholder@H_502_5@() }>@H_502_5@

    </@H_502_5@TextInput@H_502_5@>@H_502_5@

    {this@H_502_5@.rightView@H_502_5@()}
</@H_502_5@View@H_502_5@>@H_502_5@




<@H_502_5@View @H_502_5@style @H_502_5@=@H_502_5@{ETTLogStyles.log_input_top@H_502_5@}>@H_502_5@
    <@H_502_5@TextInput @H_502_5@style @H_502_5@=@H_502_5@{this@H_502_5@.inputStyle@H_502_5@()} @H_502_5@placeholder@H_502_5@=@H_502_5@{this@H_502_5@.placeholder@H_502_5@() } @H_502_5@underlineColorAndroid@H_502_5@='transparent'@H_502_5@>@H_502_5@

    </@H_502_5@TextInput@H_502_5@>@H_502_5@

    {this@H_502_5@.rightView@H_502_5@()}
</@H_502_5@View@H_502_5@>@H_502_5@

猜你在找的React相关文章