I'm using react-native's SectionList and can't hide the sectionheaders of the empty sections of my dataset. I want to show only the section headers and the rows of the sections that are not empty.
This is what I did:
<SectionList
renderSectionHeader={({ section }) => (
section.data.length > 0 ? this._renderHeader(section.title) : (null)
)}
...
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With