Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 19, 2019 15:09
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 amandeepmittal/a7bff033d62eb8d986aea17be951dcad to your computer and use it in GitHub Desktop.
Save amandeepmittal/a7bff033d62eb8d986aea17be951dcad to your computer and use it in GitHub Desktop.
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerText}>Headlines App</Text>
</View>
<View style={styles.contentContainer}>
<FlatList
data={articles}
renderItem={({ item }) => <Article {...item} />}
keyExtractor={item => `${item.url}`}
/>
</View>
</View>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment