oOEric
oOEric

Reputation: 1079

How to set row height in Flatlist in react native

I tried to use getItemLayout but didn't success. And I can't find any other related parameters in the react native documentation.

Upvotes: 1

Views: 4917

Answers (1)

Milore
Milore

Reputation: 1672

Use renderItemto customize your item rows

renderItem={({item}) => <View style={{ height: 80 }}> // ... </View>}

for example.

Upvotes: 4

Related Questions