FlatList
Following is the default implementation of the FlatList component without any additional customization. This serves as a starting point for users who are new to this library and want to learn about the basic functionality and appearance of the component.
<Heading size="xl" p="$4" pb="$3">
renderItem={({ item }) => (
borderColor="$trueGray800"
borderColor: "$trueGray100",
<HStack space="md" justifyContent="space-between">
<AvatarImage source={{ uri: item.avatarUrl }} />
keyExtractor={(item) => item.id}
Note: You can refer
here to learn about default styling of FlatList component
Import
To use this component in your project, include the following import statement in your file.
import { FlatList } from '@gluestack-ui/themed';
Anatomy
The structure provided below can help you identify and understand a FlatList component's various parts.
export default () => <FlatList />
API Reference
The following section contains a comprehensive list of the component's references, including descriptions, properties, types, and default behavior. This information is readily available for you to access, helping you effectively utilize the component library in your projects.
FlatList
It inherits all the properties of React Native's
FlatList component.