我有输入
function generateRandomColors(num){
let arr = [];
for(let i=0;i < num;i++){
arr.push(randomColor());
}
return arr;
}
let randomColor = () => {
//random for red
let r = Math.floor(Math.random() * 256);
//random for blue
let g = Math.floor(Math.random() * 256);
//random for green
let b = Math.floor(Math.random() * 256);
//return rgb
return "rgb(" + r + ", " + g + ", " + b +")";
};
,并且我想在用户填写完输入后进行类似<TextInput
placeholder={"Age"}
placeholderTextColor="rgba(255, 255, 255, 0.7)"
onSubmitEditing={() => this.passwordInput.focus()}
keyboardType='number-pad'
maxLength={3}
style={[styles.input, styles.shortInput]}
onChangeText={this.emailHandler} />
的操作,通过单击此按钮,他将自动移至下一个输入,我尝试过returnKeyType =“ go”,但它不起作用