Flatlist Methods
Автор: AgyemangDev - Coding The Future
Загружено: 2024-07-03
Просмотров: 16
Описание:
In this video, you'll learn to use useful methods in the FlatList component. You'll extract unique item IDs for easier tracking and render separator lines, a header, and a footer. We'll use the Little Lemon mobile app, which already uses FlatList for a scrollable, lazily rendered menu. The menuItemsToDisplay component has an array of objects, each with a unique ID. We'll pass the keyExtractor prop to FlatList to extract these IDs. Next, we'll create a Separator component and use the ItemSeparatorComponent prop. Then, we'll create Header and Footer components using the ListHeaderComponent and ListFooterComponent props. This enhances the app with built-in FlatList methods.
Resources:
Flatlist - react native : https://reactnative.dev/docs/flatlist
ScrollView : https://reactnative.dev/docs/scrollview
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: