react-native-big-list icon indicating copy to clipboard operation
react-native-big-list copied to clipboard

Does the lib support dynamic cell heights?

Open DaveLomber opened this issue 4 years ago • 2 comments

Does the lib support dynamic cell heights?

DaveLomber avatar Jun 24 '21 07:06 DaveLomber

Hi, the only way to have dynamic cell height is using itemHeight as function https://marcocesarato.github.io/react-native-big-list-docs/props#required-itemheight.

Example:

<BigList
    //...
    itemHeight={(section, index) => {
        // Your logic
        if(index === 10) return 100;
        return 50;
     }}
    />

This is not tested using columns at the moment.

marcocesarato avatar Jun 24 '21 17:06 marcocesarato

What can we do to implement waterfall type list with this library?

Yusuf007R avatar Jul 09 '21 00:07 Yusuf007R