Create a gist now

Instantly share code, notes, and snippets.

Embed
RN-LFVL-6 - Adding keyExtractor to FlatList
export default class Application extends Component {
...
render() {
if (this.state.isLoading) {
...
} else {
return (
<FlatList
...
keyExtractor={(item, index) => index}
...
/>
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment