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

458
Vistas
How to avoid element height shift in ScrollView (React Native) when element changes size?

I am using a classical React Native ScrollView and my elements can change size on some user defined interaction. The element changes size because some new information is added on the top of the element (see pseudo-code below).

<View>
   {condition && (<View> Additional Info </View>)}
   <View> Original Element </View>
</View>

When this happens, I want to keep the Original Element to keep its position on the user's screen. However, and logically, the Original Element is visually shifted downwards because of the size change.

One solution that I could think of would be to manually scroll the view downwards as the additional info appears but it seems like a hack and I'm not confident about the visual rendering.

Can someone think of a better way to do this ?

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