In React Native, when using the keyboard, when the user presses return to send text to indicate that they typed something at the input, how would I call a function from the keyboard return event?
returnKeyboardClick(){
}
render(){
return (
<View style={styles.container}>
<TextInput
style={styles.input}
onChangeText={this.inputTextEnter}
placeholder='Type Here'
placeholderTextColor='#000'
keyboardType='default'
/>
</View>
);
}
source
share