【发布时间】:2017-06-01 06:06:36
【问题描述】:
我在我的 react 项目中使用 Native-Base。我想在 Native-Base 中自定义边框图标文本框表单的宽度。 这是我的代码
<Item>
<Icon active name='lock' />
<Input placeholder='password'/>
</Item>
这就是表演
那么,如何在边框中自定义边距?谢谢
【问题讨论】:
我在我的 react 项目中使用 Native-Base。我想在 Native-Base 中自定义边框图标文本框表单的宽度。 这是我的代码
<Item>
<Icon active name='lock' />
<Input placeholder='password'/>
</Item>
这就是表演
那么,如何在边框中自定义边距?谢谢
【问题讨论】:
试试这个:
<Item>
<Icon active name='lock' style={{borderWidth: 10}}/>
<Input placeholder='password'/>
</Item>
【讨论】: