答案 0 :(得分:0)
答案 1 :(得分: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>
);
}
}
答案 2 :(得分:-1)
如果您愿意使用本机以外的其他方式,请选择react-native-code-input