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

Unable to use blocks with Different heights. ('itemHeight' property) #35

Open
aithashi opened this issue Jul 21, 2020 · 2 comments
Open

Comments

@aithashi
Copy link

aithashi commented Jul 21, 2020

Capture01
Capture02

As showing above, it works very nicely when all the blocks are of same height, But i'm trying to use blocks with different heights(one with 50% height and other with 25% height)

Here the problem is the props
itemHeight={350}
of the componentis not dynamic for each blocks and if we remove this property it takes the width size as height by default.

Can you please suggest any of the workarounds for this issue.
Thanks in advance!

@SHISME
Copy link
Owner

SHISME commented Jul 24, 2020

Sorry, it's difficult to calculate when item have different height, if you only have one column in a row, i think maybe react-native-draggable-flatlist will help you

@aithashi
Copy link
Author

Sorry, it's difficult to calculate when item have different height, if you only have one column in a row, i think maybe react-native-draggable-flatlist will help you

Thanks @SHISME for your response and suggestion, will check that lib 👍

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

No branches or pull requests

2 participants