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

139
Vistas
Textipunt on the bottom doesn't avoid keyboard on iOS but on android does

I plan having that textinput on the bottom, and i want it to avoid the keyboard. On Android it avoids, but on iOS it doesn't, even though I'm using the <KeyboardAvoidingView>.

I'm placing it on the bottom with absolute position.
By the way, I'm using expo-cli

This is my return

return (

  <KeyboardAvoidingView 
    behavior={Platform.OS === "ios" ? "positionx" : false} 
    style={{ backgroundColor: "#fff", bottom: 0, position: "absolute", flex: 1 }}
  >

    <SafeAreaView style={styles.commentView}>
      <TextInput
         style={styles.commentInput}
         placeholder='Comentário'
      />
      <TouchableOpacity>
        <Text style={{ color: "#F5A962" }}>Publicar</Text>
      </TouchableOpacity>
    </SafeAreaView>

  </KeyboardAvoidingView>
)

This is my stylesheet

commentInput: {
  height: 40,
  width: "80%",
  borderWidth: 1,
  borderRadius: 5,
  borderColor: "black",
  paddingStart: 10,
  marginEnd: "3.5%",
  backgroundColor: "#eee"
},
commentView: {
  flexDirection: "row",
  alignItems: "center",
  justifyContent: "center",
  backgroundColor: "#fff",
}

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Yes, you can not solve it with the above code. You always will see the covered issue by the keyboard. it depends on the layout. If you are going to solve this problem, please feel free to create a google meeting(reactnativeseniordev@gmail.com). I will help your problem via a calling.

about 4 years ago · Juan Pablo Isaza Denunciar
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