Native styling listview even odd rows

Hi all, I am styling my native app and want try to change the backgroundcolors of the even/odd items.  I want it to look like this:  This is a list on the web app and now I want the same for the native app.  Does somebody know how you can change only the even/odd rows in a list in react native?   Thanks! Kolien
1 answers

Hi Kolien, try this:

.mx-listview > ul > li:nth-child(odd) {background-color: #BADa55;}
.mx-listview > ul > li:nth-child(even) {background-color: white;}