ListViews

  • generic scrolling container that can contain multiple components and views

  • can scroll both vertically and horizontally (by setting the horizontal property).

  • can allow paging through views using swiping gestures by using the pagingEnabled props(can also use ViewPager for horizontal swipes on Android)

  • On iOS, ScrollView with a single item could setup pinch to zoom with maximumZoomScale and minimumZoomScale

  • Renders everything in ScrollView, use List Views if many many items

List Views

FlatList

Scrolling list of changes of similarly structured data that doesn't prerender everything

<View style={styles.container}>
  <FlatList
    data={[
      {key: 'John'}, //need keky for each item
      {key: 'Jimmy'},
      {key: 'Jorge'}
    ]}
    renderItem={({item}) => <Text style={styles.item}>{item.key}</Text>}
    />
</View>

SectionList

Renders set of data broken into logical sections

Last updated