Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda