Skip to content

Commit

Permalink
fix lint and remove todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teneeto committed Sep 18, 2023
1 parent 53874aa commit 89f05be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/InvertedFlatList/BaseInvertedFlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,14 @@ function BaseInvertedFlatList(props) {
{...props}
ref={innerRef}
renderItem={renderItemFromProp}

// Native platforms do not need to measure items and work fine without this.
// Web requires that items be measured or else crazy things happen when scrolling.

getItemLayout={shouldMeasureItems ? getItemLayout : undefined}

// We keep this property very low so that chat switching remains fast

maxToRenderPerBatch={1}
windowSize={15}

// Commenting the line below as it breaks the unread indicator test
// we will look at fixing/reusing this after RN v0.72
// maintainVisibleContentPosition={{minIndexForVisible: 0, autoscrollToTopThreshold: 0}}
/>
);
}
Expand Down

0 comments on commit 89f05be

Please sign in to comment.