Skip to content

Commit

Permalink
[DF] feat(Shopify#547): update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
friyiajr committed Mar 30, 2023
1 parent b34e8ef commit e157b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/FlashList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ class FlashList<T> extends React.PureComponent<
}}
index={parentProps.index}
stableId={
/* Empty string is used so the list can still render without an extractor */
this.props.keyExtractor?.(parentProps.data, parentProps.index) ?? ""
}
>
Expand Down
5 changes: 3 additions & 2 deletions src/FlashListProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@ export interface FlashListProps<TItem> extends ScrollViewProps {

/**
* If enabled, FlashList will try and maintain the position of the list when items are added from the top.
* This prop requires you define a `keyExtractor` function. The keyExtractor is used to compute the list
* top anchor. Without it, the list will fail to render.
* This prop requires you define a `keyExtractor` function. The `keyExtractor` is used to compute the list
* top anchor. Without it, the list will fail to render. If in debug mode, you may see flashes if new data
* comes in quickly. If this happens, please confirm you see this in release mode before reporting an issue.
*/
experimentalMaintainTopContentPosition?: boolean;
}

0 comments on commit e157b42

Please sign in to comment.