feature-request/num-of-columns
See original GitHub issueLike from FlatList https://reactnative.dev/docs/flatlist#numcolumns.
I actually tried using contentContainerStyle={{ flexDirection: "row", flexWrap: "wrap" }}
for little items, but it gave a weird behavior. Given the item header it doesnt consider row, only column.
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The processor that I mean is the following class: https://github.com/marcocesarato/react-native-big-list/blob/master/lib/BigListProcessor.js that process the height and the position of each items depending from the scroll offset of the scroll view. So even you with style it able to render items side by side with column format the processor actually don’t elaborate all items.
In short actually each row is equivalent to the height of the element (like
50
) so we know that the third element will be shown at offset scrollview150
(index:3
* itemHeight:50
) and this continue until you reach the size of the visible list. But if we have 2 elements per row it means that the third element will be in the100
position but for the processor it is at150
. Then, when the processor reaches the maximum size of the visible list, it stops rendering the items.If the maximum size allows you to render
10
elements, with two columns you could render20
but the processor currently only processes10
and miss all position of the following elements.Yesterday I done some tests and tried to implement it but I got some glitches that make it unusable so I need to fix them before release something.
@marcocesarato I just tested,
contentContainerStyle
is also affectingrenderHeader
, same thing as just wrapping BigList in a View.