Skip to content

Instantly share code, notes, and snippets.

@streetsmartdev
Last active August 9, 2017 15:28
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 streetsmartdev/26ea17f00ca7bf57f108f99f7d639a85 to your computer and use it in GitHub Desktop.
Save streetsmartdev/26ea17f00ca7bf57f108f99f7d639a85 to your computer and use it in GitHub Desktop.
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