I'm developing an app now.
I'm currently implementing the comment function
It's a flow where the keyboard comes up, writes what you want, and registers comments through the Submit button.
The problem is that if you click the Submit button while the keyboard is up, the keyboard is hidden and you have to click Submit again while it is hidden to activate the function.
I didn't write Keyboard.dismiss.
Is there any related props in textinput? Or if there is another way, please share it.
Thank you.
<View>
<TextInput
onChangeText={change => setComment(change)}
text={comment}
value={comment}
autoCorrect={false}
clearButtonMode="always"
autoFocus={false}
maxLength={100}
placeholder="Comments Here"
placeholderTextColor="rgba(100,100,100,0.8)"
/>
<Text onPress={postComment}>Submit</Text>
</View>