How to change height of <FlatList/> in react native?
adding flexGrow: 0
to the flatList style worked for me, so it will be:
flatList: {
height: 50,
backgroundColor: 'red',
flexGrow: 0
}
Set the height of <View/>
and place <FlatList/>
inside that <View/>