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

146
Views
¿Es posible representar índices específicos en VirtualizedList de React native?

Tengo esta larga VirtualizedList en mi proyecto React Native:

 <VirtualizedList horizontal data={pages} pagingEnabled windowSize={2} initialNumToRender={3} maxToRenderPerBatch={1} initialScrollIndex={page} onMomentumScrollEnd={onScrollEnd} getItemCount={data => data.length} keyExtractor={(_, i) => i + ''} getItemLayout={(_, index) => ({ length: width, offset: width * index, index })} getItem={(_, index) => ({index})} renderItem={renderPage} />

En este momento, está representando 3 elementos antes y 2 elementos después de la página actual.

Mi pregunta es:

¿Puede especificar exactamente qué índices deben representarse?

Porque tengo un encabezado que permite al usuario saltar a un índice específico y puedo anticipar qué índice podría ser el siguiente.

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