Skip to content

Where does TABBED_SECTIONS come from in the TabbedHeaderList example? #327

Closed Answered by mateusz1913
thecompoundingdev asked this question in Q&A
Discussion options

You must be logged in to vote

@thecompoundingdev the expected type is the same as in the SectionList, you can check the dummy data in the example repo - in your case, there's no required data where you have all items for specific section. You should define sections in following way:

const TABBED_SECTIONS = [
  {
// add required data array
    data: [
      { itemId: '1' },
      { itemId: '2' },
    ],
    title: 'section1',
    description: 'section one is a great section'
  },
  {
// add required data array
    data: [
      { itemId: '1' },
      { itemId: '2' },
    ],
    title: 'section2',
    description: 'section two is a good section'
  },
];

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mateusz1913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants