AliRehman7141
AliRehman7141

Reputation: 993

React Native FlatList Item with dynamic height and width

I have a screen in my design it will contain multiple images. Its looks like a gallery view. I need to display every item with dynamic width and height. please see the image.

enter image description here

Upvotes: 0

Views: 1077

Answers (1)

Fiston Emmanuel
Fiston Emmanuel

Reputation: 4859

This design pattern is called masonry grid layout. There're many packages that make those layouts.

You can try this https://github.com/hyochan/react-native-masonry-list

Upvotes: 1

Related Questions