react native listview date separator site:stackoverflow.com
<FlatList
data={newsData}
renderItem={({ item, index }) => (
item.featured === null && this.renderNews(item)
)}
keyExtractor={item => item.id.toString()}
style={styles.container}
ItemSeparatorComponent={(index===0 || index === newsData.length - 1) ? null : this.renderSeparator}
ListHeaderComponent={this.renderFeaturedNews}
/>