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

196
Views
Reactnative FlatList memory or is very Slow

I have a big Flat List (around 2000 elements) ont the item i have shouldComponentUpdate false so the item doesn't load several times

My FlatList is declared like this <FlatList showsVerticalScrollIndicator={false} inverted data={this.props.dataSourcePr} ref={ref => { this.state.flatListTimeLine = ref; }} renderItem={this.renderItem} onViewableItemsChanged={this.onViewableItemsChanged} viewabilityConfig={{ itemVisiblePercentThreshold: 30, }} keyExtractor={(item, index) => index} initialScrollIndex={this.state.lastIndex} onScrollToIndexFailed={info => {}}

        initialNumToRender={70}
        maxToRenderPerBatch={50}
        onEndReachedThreshold={0.1}
        windowSize={70}
        onScroll={this._onScroll}
        removeClippedSubviews = {true}
      />

How can i avoid crashes problem, and how can i make this FlatList less slow ? how can i tell FlatList to load only shown element on screen ?

any help would be greatly appreciated

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

0

Try to add keyExtractor and checkout this article by react-native

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!