I am trying to render empty component when my sections are empty. This is the sample code of mine
<SectionList
sections={[
{title: 'sectionOne', data: this.props.Activities.ActivityTypeOne},
{title: 'sectionTwo', data: this.props.Activities.ActivityTypeTwo},
{title: 'sectionThree', data: this.props.Activities.ActivityTypeThree}
]}
keyExtractor={ (item, index) => index }
stickySectionHeadersEnabled={true}
extraData={this.state}
ListEmptyComponent={this.renderEmptyScreens}
/>
But when this 3 all arrays are empty, it does not trigger the ListEmptyComponent
Can anyone tell me what is wrong with this code, or if my logic is incorrect can anyone please explain me.
Bacically I need to render some view when all 3 arrays are empty.