Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
React Native: deshabilite el desplazamiento anidado

Tengo una FlatList principal que, en su pie de página, puede mostrar otra flatlist o una simple vista de desplazamiento.

 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} /> );

El problema que estoy experimentando es que, a veces, al desplazarse hacia abajo, el componente que se desplaza es el pie de página y no la lista principal.

¿Cómo puedo evitar ese comportamiento?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede agregar la propiedad scrollEnabled={false} a cualquier FlatList que no desee desplazar.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!