1 <FlatList
2 data={newsData}
3 renderItem={({ item, index }) => (
4 item.featured === null && this.renderNews(item)
5 )}
6 keyExtractor={item => item.id.toString()}
7 style={styles.container}
8 ItemSeparatorComponent={(index===0 || index === newsData.length - 1) ? null : this.renderSeparator}
9 ListHeaderComponent={this.renderFeaturedNews}
10 />
11