Home > Software design >  Cannot convert undefined value to object - React Native
Cannot convert undefined value to object - React Native

Time:12-24

I think I have some error in the SectionList, but I can't find any error, can you help me please? CoinDetailScreen

I read the React Native documentation and I think I understand that I can't iterate the sections array, but I don't know how to apply it to a solution.

CodePudding user response:

sections instead of section in the sectionList component.

Therefore you should have it like this

<SectionList
...
sections={getSections(coin)}
/>

CodePudding user response:

Use sections instead of section property in the SectionList component.

  • Related