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

249
Vistas
React Native - Disable nested scrolling

I have a parent FlatList which, in its footer, can render another flatlist or a simple scroll view.

const renderFooter1 = () => {
   return <ScrollView> ... </ScrollView>;
}

const renderFooter2 = () => {
   return <FlatList ... />;
}

// Note: I am not doing this in real life, just an example for handling both possible footers
return (
   <FlatList 
      refreshControl={renderRefreshControl()}
      ListHeaderComponent={renderHeader()}
      ListFooterComponent={Math.random() * 10 > 0.5 ? renderFooter1() : renderFooter2()}
      showsVerticalScrollIndicator={false}
   />
);

The problem I am experiencing is that, sometimes, when scrolling down, the component which scrolls is the footer, and not the parent list.

How can I avoid that behavior?

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

0

You can add the prop scrollEnabled={false} to whichever FlatList you don't want to scroll.

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