Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

259
Views
In react-native, how to submit after write comment using keyboard

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>

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!