FlatList
FlatList is an extension of the React Native FlatList component, focused on accessibility.
Usage
import { FlatList } from '@react-native-ama/lists';
<FlatList
data={items}
renderItem={renderItem}
keyExtractor={item => item.id}
listType="dynamic"
singularMessage="%count% item found"
pluralMessage="%count% items found"
/>
Dynamic list
A dynamic list must announce the number of items displayed if they change due to filtering. Check here for more info.
Props
Required listType
Value | Description |
---|---|
dynamic | Renders a DynamicFlatList |
static | Renders a StaticFlatList |