SectionList

React Native 6 min min read Updated: Jul 26, 2026 Intermediate
SectionList
Intermediate Topic 7 of 30

SectionList

SectionList is a specialized version of FlatList designed for rendering grouped data, where items are organized into sections with headers, such as a contacts list grouped by alphabet.

Basic Usage

javascript import { SectionList, Text } from 'react-native'; const sections = [ { title: 'A', data: ['Alice', 'Andrew'] }, { title: 'B', data: ['Bob', 'Brian'] }, ]; item + index} renderItem={({ item }) => {item}} renderSectionHeader={({ section }) => {section.title}} />

Understanding the Data Structure

SectionList requires data to be structured as an array of section objects, each containing a title and a data array representing the items within that section.

Sticky Section Headers

The stickySectionHeadersEnabled prop keeps the current section header visible at the top of the screen while scrolling through its items, similar to iOS contact apps.

javascript {item}} renderSectionHeader={({ section }) => {section.title}} />

Adding Section Footers

The renderSectionFooter prop allows you to render custom content at the end of each section, useful for spacing or summary information.

Common Use Cases

  • Alphabetically grouped contact lists
  • Categorized product listings
  • Date-grouped chat messages or notifications

SectionList vs FlatList

Use FlatList for simple, flat lists of data, and SectionList when your data naturally groups into categories that benefit from clear section headers.

Conclusion

SectionList provides an efficient and organized way to render grouped data with headers in React Native. It combines the performance benefits of FlatList with additional structure for categorized content.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators