You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a grid list with 3 columns where I am rendering images in each item. I want to have gap of 2 between items.
On regular Flatlist from React-Native, All I need to do is to use following code:
umangloria
changed the title
Not able to set gap with multiple columns th contentContainerStyle={{ gap: number }} columnWrapperStyle={{ gap: number }}
Not able to set gap with multiple columns contentContainerStyle and columnWrapperStyle
Dec 27, 2024
Current behavior
I have a grid list with 3 columns where I am rendering images in each item. I want to have gap of 2 between items.
On regular Flatlist from React-Native, All I need to do is to use following code:
However the same code is not working if I swap
FlatList
withFlashList
, It starts complaining that gap is not supported property.Expected behavior
Above mentioned code should work fine with the
FlashList
as well just likeFlatList
To Reproduce
Platform:
Environment
The text was updated successfully, but these errors were encountered: