可能这对你的要求有帮助
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>
);
}
}
如果您使用比本土基地其他别的东西很舒服,去react-native-code-input