在天然碱基的多个输入

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

我有一个项目在本地做出反应,并使用“天然基地”。我想有这样的enter image description here输入

任何人都可以帮忙吗?

react-native native-base
3个回答
0
投票

那么这就是可能的NativeBase,只是给你选择的宽度Item

在这个屏幕截图中提到的输入与每个输入给定的宽度值

enter image description here


0
投票

可能这对你的要求有帮助

import React, { Component } from "react";
import { Container, Header, Content, Item, Input } from "native-base";
export default class RoundedTextboxExample extends Component {
render() {
return (
  <Container>
    <Header />
    <Content
      contentContainerStyle={{
        flexDirection: "row",
        justifyContent: "space-between",
        marginTop: 20,
        borderColor: "black",
        borderWidth: 3,
        margin: 2,
        padding: 20
      }}
    >
      <Item rounded style={{ width: "23%", borderColor: "red" }}>
        <Input placeholder="Rounded" />
      </Item>
      <Item rounded style={{ width: "23%" }}>
        <Input placeholder="Rounded" />
      </Item>
      <Item rounded style={{ width: "23%" }}>
        <Input placeholder="Rounded" />
      </Item>
      <Item rounded style={{ width: "23%" }}>
        <Input placeholder="Rounded" />
      </Item>
    </Content>
  </Container>
);
}
}

**It's screenshot from my emulator**


-2
投票

如果您使用比本土基地其他别的东西很舒服,去react-native-code-input

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.