Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: Set space between rows in a ListView

I can't figure out how to set padding between my rows in a ListView. I am trying to replicate a card style feed looks.

like image 745
Brackets Avatar asked May 07 '16 00:05

Brackets


1 Answers

Add a marginBottom property to each ListView Item:

row: {
  ...
  marginBottom: 2
}

I've set up a working example here.

enter image description here

like image 163
Nader Dabit Avatar answered Sep 28 '22 09:09

Nader Dabit