Open bryanltobing opened 1 year ago
Oh true. There is a spacing (10 units default) that is applied the to the grid - between the items and outside. Internally this is a padding/margin at the top of container and ListHeaderComponents is getting rendered inside.
I will look in to this and see what can be done, without affecting other stuffs.
For now you can do a quick hack I suppose
ListHeaderComponentStyle={{ backgroundColor: 'red', marginTop: -10, marginBottom: 10 }}
Replace 10 with value you provide for spacing
prop if you change it.
I have this code that uses
FlatGrid
componentIt renders like this
not sure why that spaces were added. but it's not appear when i change it to
FlatList