paint-brush
Using KeyExtractor in React Native's FlatListby@amanhimself
875 reads
875 reads

Using KeyExtractor in React Native's FlatList

by Aman Mittal5mApril 5th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In React Native, the FlatList component works well to render a long list of data. It renders only the items are shown on the screen in a scrolling list and not all the data items at once. To display an item in the scrollable list, each item has a unique key such as an `id`. The key from the data array is extracted using the `keyExtractor` prop on the component. In this post, let's talk about where you might need to use the prop and what scenarios it is not required.

Company Mentioned

Mention Thumbnail
featured image - Using KeyExtractor in React Native's FlatList
Aman Mittal HackerNoon profile picture
Aman Mittal

Aman Mittal

@amanhimself

Developer, Tech Writer | React Native & Expo enthusiast | Personal blog: amanhimself.dev

Learn More
LEARN MORE ABOUT @AMANHIMSELF'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aman Mittal HackerNoon profile picture
Aman Mittal@amanhimself
Developer, Tech Writer | React Native & Expo enthusiast | Personal blog: amanhimself.dev

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Newsbreak
Pressrush
Coffee-web
Urllinking
Opificiomodenese