【发布时间】:2019-08-14 08:46:33
【问题描述】:
【问题讨论】:
标签: reactjs react-native react-native-textinput
【问题讨论】:
标签: reactjs react-native react-native-textinput
您可以使用已有的模块而无需制作它们。
我的使用方式
import PinView from "react-native-pin-view";
...
<PinView
onComplete={this.onFinishCheckingCode.bind(this)}
pinLength={4}
inputBgColor="#888888"
inputActiveBgColor="#ffd90d"
buttonBgColor="#ffffff"
buttonTextColor="black"
keyboardViewStyle={{
borderColor: "#dfdfdf",
borderWidth: 1,
width: windowHeight / 11,
height: windowHeight / 11
}}
inputViewStyle={{ width: 18, height: 18, marginRight: 20 }}
/>
【讨论】: