【发布时间】:2018-08-28 06:29:04
【问题描述】:
【问题讨论】:
-
实现这一目标您面临的问题是什么?
-
@SupriyaKalghatgi 银行卡号!
-
您说“我想要这样的输入:,那么当您尝试编写此代码时遇到了什么问题?
【问题讨论】:
可能对您的要求有所帮助
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>
);
}
}
【讨论】: