1// The parental Views of FlatList should have flex: 1 in their style.
2<View style={{
3 justifyContent: "center",
4 width: "100%",
5 marginVertical: 10,
6 flex: 1,
7}}>
8 <FlatList
9 data={covidList}
10 renderItem={renderItem}
11 keyExtractor={item => item._id}
12 />
13</View>