Using KeyExtractor in React Native's FlatListby@amanhimself
845 reads

Using KeyExtractor in React Native's FlatList

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@amanhimself

Aman Mittal


Receive Stories from @amanhimself

react to story with heart
Aman Mittal HackerNoon profile picture
by Aman Mittal @amanhimself.Developer, Tech Writer | React Native & Expo enthusiast | Personal blog: amanhimself.dev
Newsletter

RELATED STORIES

L O A D I N G
. . . comments & more!