Skip to content

Instantly share code, notes, and snippets.

@Griffin38
Created January 15, 2018 14:06
Show Gist options
  • Save Griffin38/08de087db3e5b8824adf5d768cab4ef3 to your computer and use it in GitHub Desktop.
Save Griffin38/08de087db3e5b8824adf5d768cab4ef3 to your computer and use it in GitHub Desktop.
giveState(state) {
if (state != 1) {
this.estado ="A decorrer";
} else {
this.estado = "Completo";
}
}
renderRow (rowData, sectionID) {
var x = giveState(rowData.estado);
return (
<ListItem
roundAvatar
key={sectionID}
title={rowData.descricao}
subtitle={x.estado}
onPressRightIcon={() => console.log('Works!')}
/>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment