Explore Library
Code QuizBeginner

SectionList Sections

Learn the required data shape and props for SectionList.

Codejavascript
import React from 'react';
import { SectionList, Text } from 'react-native';

export default function Grouped() {
  const sections = [{ title: 'A', items: ['Ann'] }];
  return (
    <SectionList
      sections={sections}
      renderItem={({ item }) => <Text>{item}</Text>}
    />
  );
}

What is the bug in this code?