Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6215

TypeScript + React Native SectionList

$
0
0

No overload matches this call.Overload 1 of 2, '(props: Readonly<SectionListProps>): SectionList', gave the following error.Property 'sections' is missing in type '{ children: any[]; }' but required in type 'Readonly<SectionListProps>'.Overload 2 of 2, '(props: SectionListProps, context?: any): SectionList', gave the following error.Property 'sections' is missing in type '{ children: any[]; }' but required in type '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>```

Viewing all articles
Browse latest Browse all 6215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>