Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/virtualized-lists/Lists/VirtualizedList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ export interface VirtualizedListWithoutRenderItemProps<
*/
ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;

/**
* Each data item is rendered using this element, as an alternative to `renderItem`.
* Can be a React Component Class or a render function. In addition to the data provided
* to `renderItem`, this receives `index` and `separators` metadata.
*/
ListItemComponent?:
React.ComponentType<any> | React.ReactElement | null | undefined;

/**
* The default accessor functions assume this is an Array<{key: string}> but you can override
* getItem, getItemCount, and keyExtractor to handle any type of index-based data.
Expand Down
Loading