【发布时间】:2016-01-06 20:55:38
【问题描述】:
在 React Native 中使用键盘时,一旦用户点击返回提交文本以表示他们已经在输入中完成了输入,我将如何从键盘返回事件触摸中调用函数?
returnKeyboardClick(){
//how to call this when user clicks return on keyboard?
}
render(){
return (
<View style={styles.container}>
<TextInput
style={styles.input}
onChangeText={this.inputTextEnter}
placeholder='Type Here'
placeholderTextColor='#000'
keyboardType='default'
/>
</View>
);
}
【问题讨论】: