How to set item height equal to FlatList height in react native?

Viewed 956

I have a vertical flat list with paging enabled. I want to make each item covering the flat list height.

3 Answers

You can specify the height of each rendered item to the window height

height : Dimensions.get('window').height

Setting flexGrow:0 for the Flatlist solved it for me! Thanks all

I'm using a ScrollView Horizontal. For me fixed setting height: 100% for the items list.

before fixed after fixed

Related