bolan9999 / react-native-largelist

The best large list component for React Native.
https://bolan9999.github.io/react-native-largelist/
MIT License
2.32k stars 261 forks source link

How to make LargeList items heights #445

Open abdullahIsa opened 3 years ago

abdullahIsa commented 3 years ago

How to make LargeList items take on their own heights, as each items have different heights as the component renders, for instance a message box that has an image and a text reply this kinds of items will have different heights and so on, so how to get this done, thanks.

shemraj0809 commented 3 years ago

I seem to have an issue which is for the same reason. I use the list with sections and they are collapsed on entry. When expanding these sections they data doesnt come up correctly within the section.

jgalianoz commented 3 years ago

@abdullahIsa @shemraj0809 Maybe you can try add this line heightForIndexPath={() => 'auto'}

ghost commented 1 year ago

@jgalianoz @bolan9999 it's not working it take only number my issue here when data is hide but data space is not hide how to hide data space ?? output

AftabUfaq commented 1 year ago

@jgalianoz @bolan9999 it's not working it take only number my issue here when data is hide but data space is not hide how to hide data space ?? output

this worked for me fine. please share your code. and which dependency version your are using

ghost commented 1 year ago

@jgalianoz @bolan9999 it's not working it take only number my issue here when data is hide but data space is not hide how to hide data space ?? output

this worked for me fine. please share your code. and which dependency version your are using

here is more code

please help me if you have solution

AftabUfaq commented 1 year ago

@abdullahIsa @shemraj0809 Maybe you can try add this line heightForIndexPath={() => 'auto'}

this work only when we have a single header with 2 to more not working,