【问题标题】:reduce length of native base input line减少本机基本输入行的长度
【发布时间】:2020-08-12 03:43:19
【问题描述】:

我在我的应用程序中使用它:

<Item fixedLabel>
              <Input style={{ width: 0.5 }}/>
            </Item>

fixedLabel 行的长度延伸到整个屏幕。我怎样才能减小它的大小?我已经尝试过使用widthpaddingLeft/right,但没有任何区别。

【问题讨论】:

    标签: javascript css typescript react-native native-base


    【解决方案1】:

    将其包装在一个 div 中,然后将样式添加到该 div

    <div className='cusmtomClass'>
      <Item fixedLabel>
        <Input style={{ width: 0.5 }}/>
      </Item>
    </div>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-18
      • 1970-01-01
      • 2012-08-06
      • 2017-02-09
      相关资源
      最近更新 更多