bserrador
5/25/2017 - 1:26 PM

Render different row colours based on row id (https://stackoverflow.com/a/36127577)

Render different row colours based on row id (https://stackoverflow.com/a/36127577)

renderRow(rowData, sectionID, rowID, highlightRow) {
  if(rowID%2 === 0) {
    return(<View style={{backgroundColor:'blue'}}/>);
  }
  return(<View style={{backgroundColor:'red'}}/>);
}