Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the lib support dynamic cell heights? #16

Open
DaveLomber opened this issue Jun 24, 2021 · 2 comments
Open

Does the lib support dynamic cell heights? #16

DaveLomber opened this issue Jun 24, 2021 · 2 comments
Labels
question Further information is requested

Comments

@DaveLomber
Copy link

Does the lib support dynamic cell heights?

@marcocesarato marcocesarato added the question Further information is requested label Jun 24, 2021
@marcocesarato
Copy link
Owner

marcocesarato commented Jun 24, 2021

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.

@Yusuf007R
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants