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

114
Views
How to display a placeholder while scrolling in react native's sectionlist?

I have a sectionList in a React Native app. It works at full speed on IOS devices, but it's much slower on Android devices. I've made all possible optimizations. The biggest issue is that when scrolling very fast, the list renders a black screen, while all my rows are grey. So it looks weird and buggy.

Is it possible to display a placeholder while the list is scrolling (an empty grey row with a bottom border)? Or at least a grey background on my list?

The code is:

 <SafeAreaView style={styles.container}>
      <SectionList
        removeClippedSubviews={true}
        maxToRenderPerBatch={8}
        initialNumToRender={8}
        viewabilityConfig={{
          minimumViewTime: 300,
          viewAreaCoveragePercentThreshold: 100,
          waitForInteraction: true,
        }}
        sections={data}
        keyExtractor={(item) => item.name}
        renderItem={({ item }) => <ProfileCard profile={item} />}
        renderSectionHeader={({ section: { title } }) => (
          <Text style={styles.header}>{title}</Text>
        )}
      />
</SafeAreaView>

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: Color.black,
    width: "100%",
    paddingHorizontal: 12,
    paddingTop: StatusBar.currentHeight, //12
  },
  header: {
    fontSize: 16,
    padding: 12,
    color: Color.white,
    fontWeight: "700",
    backgroundColor: Color.black_medium,
  }
});

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!