Skip to content

Instantly share code, notes, and snippets.

View jeffngugi's full-sized avatar
🎯
Focusing

jeff ngugi jeffngugi

🎯
Focusing
  • Nairobi
View GitHub Profile
@jeffngugi
jeffngugi / multi-column-section-list-example.md
Created February 6, 2023 13:06 — forked from tomsotte/multi-column-section-list-example.md
Multi-column SectionList using FlatList

First, let's assemble the data. Say we have two sets of objects: Fruits and Vegetables.

Our sections array would look like this. Note how each section has a data attribute, which is an array of our fruits or vegetables.:

const sections = [
  {
    title: 'Vegetables',
    key: 'vegetables',
    data: [