From 89f05befaaba4bdedbd0f325e58bb691bfff4864 Mon Sep 17 00:00:00 2001 From: Etotaziba Olei Date: Mon, 18 Sep 2023 15:26:54 +0100 Subject: [PATCH] fix lint and remove todo comments --- src/components/InvertedFlatList/BaseInvertedFlatList.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList.js b/src/components/InvertedFlatList/BaseInvertedFlatList.js index 3be92d06292b..2ad8102f4beb 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList.js +++ b/src/components/InvertedFlatList/BaseInvertedFlatList.js @@ -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}} /> ); }