Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

255
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda