hyochan / react-native-masonry-list

The Masonry List implementation which has similar implementation as the `FlatList` in React Native
MIT License
393 stars 55 forks source link

Columns are unaligned from bottom when height of the images are not equal #16

Open aliasad106 opened 2 years ago

aliasad106 commented 2 years ago

it seems like it just distributes number of items equally and doesn't take their heights in consideration. I think it should make the distribution with respect to height. Screenshot_20210827-171627

hyochan commented 2 years ago

Looks like we need extra work on organizing sizes in the array then check the current total height before adjusting the height of element.

The idea can be when adjustRespectiveHeight prop is true, we can have that.

aliasad106 commented 2 years ago

@hyochan in our scenario we have width/heights of each element already in our array. Our requirement is only 2 columns so may we can pre-sort it according to that but in multi-column that would be overhead.

hyochan commented 2 years ago

@aliasad106 We can try!! However, I am sorry that I have really busy days until Oct 17th 😢

ruairioliverwv commented 2 years ago

Thanks for this lib, works great! I'd also love to see this feature added if possible

elliotsayes commented 1 year ago

Same here, lacking this feature is a show stopper for me.. the longer the list gets the more unbalanced it can become :(

thefranfran commented 1 year ago

Same issue here, this issue block me :/