Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

258
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda