react-native-draggable-grid icon indicating copy to clipboard operation
react-native-draggable-grid copied to clipboard

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

Open aithashi opened this issue 4 years ago • 2 comments

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 <DraggableGrid> 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!

aithashi avatar Jul 21 '20 14:07 aithashi

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

SHISME avatar Jul 24 '20 01:07 SHISME

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 👍

aithashi avatar Jul 26 '20 10:07 aithashi