この呼び出しに一致するオーバーロードはありません。2 つのオーバーロード 1、「(props: Readonly<SectionListProps>): SectionList」で次のエラーが発生しました。タイプ '{ children: any[]; にプロパティ 'sections' がありません。}' ですが、タイプ 'Readonly<SectionListProps>' では必須です。オーバーロード 2 の 2、「(props: SectionListProps、context?: any): SectionList」で次のエラーが発生しました。タイプ '{ children: any[]; にプロパティ 'sections' がありません。}' ですが、タイプ 'Readonly<SectionListProps>' では必須です。
<SafeAreaView>
<SectionList>
ListHeaderComponent={() => (
<>
<BarApresentation bar={bar}/>
<CategoryList/>
<HightlightList/>
</>
)}
sections={organizedDishes}
keyExtractor={(item: { id: number; }) => item.id}
renderItem={({ item }) => (
<View>
<Text>
{item.name}
</Text>
</View>
)}
renderSectionHeader={({ sections }) => (
<Text>{Title}</Text>
)}
</SectionList>
</SafeAreaView>```