Skip to content

Instantly share code, notes, and snippets.

@aloukissas
Created January 8, 2019 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aloukissas/cbd6111b449c2305d4ef2bd2b26fbfde to your computer and use it in GitHub Desktop.
Save aloukissas/cbd6111b449c2305d4ef2bd2b26fbfde to your computer and use it in GitHub Desktop.
render() {
return (
<View style={styles.container}>
<FlatList
data={this.state.data}
renderItem={({ item }) => <Text>{`item ${item}`}</Text>}
keyExtractor={(item, index) => `key-${index}`}
/>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment