Skip to content

Instantly share code, notes, and snippets.

@ShoMasegi
Created October 14, 2018 18:56
Show Gist options
  • Save ShoMasegi/28cc2c5009b5ce3dd1678341ccc2cfe2 to your computer and use it in GitHub Desktop.
Save ShoMasegi/28cc2c5009b5ce3dd1678341ccc2cfe2 to your computer and use it in GitHub Desktop.
render() {
return (
<View style={styles.container}>
<FlatList
style={styles.flatList}
data={_rows}
renderItem={this._renderItem}
keyExtractor={_extractKey}
/>
</View>
)
}
_renderItem = ({item}) => {
return (
<TouchableOpacity onPress={this._onPressItem}>
<Text style={styles.row}>
{item.text}
</Text>
</TouchableOpacity>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment