Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda