-
-
Save streetsmartdev/26ea17f00ca7bf57f108f99f7d639a85 to your computer and use it in GitHub Desktop.
RN-LFVL-6 - Adding keyExtractor to FlatList
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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