Created
January 15, 2018 14:06
-
-
Save Griffin38/08de087db3e5b8824adf5d768cab4ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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