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

141
Vistas
Why is the touchable area so small of this TouchableOpacity?

When I press the TouchableOpacity, it highlights, but a little over half of the time, it doesn't log press.

Why is the touchable area so small? It feels like it is only 1 x 1 pixel.

I already tried quite a few things, such as using a <View> wrapper and setting the width and height of the TouchableOpacity component.

<List.Item
      onPress={undefined}
      right={() => {
          return (
            <TouchableOpacity
              onPress={() => console.log('press')}
              style={{
                top: 18,
                right: 10,
                position: 'absolute',
              }}
            >
              <FontAwesome name="trash" size={16} color="#FF0000" />
            </TouchableOpacity>
          );
        }
/>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

TouchableOpacity has the size of the content in this example which means if the icon is very small then your touchable area will be very small. I usually set a square sized container style for icons and increase the size when necessary

<List.Item
  onPress={undefined}
  right={() => {
      return (
        <TouchableOpacity
          onPress={() => console.log('press')}
          style={{
            top: 18,
            right: 10,
            position: 'absolute',
            height: 20,
            width: 20
          }}
        >
          <FontAwesome name="trash" size={16} color="#FF0000" />
        </TouchableOpacity>
      );
    }/>
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