Skip to content

Commit ca5df2e

Browse files
committed
Fix android scrollbar display with isInvertedVirtualizedList prop
1 parent cab0b7b commit ca5df2e

4 files changed

Lines changed: 2 additions & 18 deletions

File tree

src/components/FlashList/InvertedFlashList/getShowScrollIndicator/index.android.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/FlashList/InvertedFlashList/getShowScrollIndicator/index.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/components/FlashList/InvertedFlashList/getShowScrollIndicator/types.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/pages/inbox/report/ReportActionsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {DeviceEventEmitter, InteractionManager, View} from 'react-native';
77
import type {OnyxEntry} from 'react-native-onyx';
88
import {renderScrollComponent as renderActionSheetAwareScrollView} from '@components/ActionSheetAwareScrollView';
99
import InvertedFlashList from '@components/FlashList/InvertedFlashList';
10-
import getShowScrollIndicator from '@components/FlashList/InvertedFlashList/getShowScrollIndicator';
1110
import {AUTOSCROLL_TO_TOP_THRESHOLD} from '@components/FlatList/hooks/useFlatListScrollKey';
1211
import {usePersonalDetails} from '@components/OnyxListItemProvider';
1312
import ReportActionsSkeletonView from '@components/ReportActionsSkeletonView';
@@ -934,7 +933,7 @@ function ReportActionsList({
934933
shouldFocusToTopOnMount && styles.justifyContentEnd,
935934
shouldScrollToEndAfterLayout && StyleUtils.getHiddenChatContentStyle(),
936935
]}
937-
showsVerticalScrollIndicator={getShowScrollIndicator(shouldScrollToEndAfterLayout)}
936+
showsVerticalScrollIndicator={!shouldScrollToEndAfterLayout}
938937
onEndReached={onEndReached}
939938
onEndReachedThreshold={0.75}
940939
onStartReached={onStartReached}
@@ -947,6 +946,7 @@ function ReportActionsList({
947946
onViewableItemsChanged={onViewableItemsChanged}
948947
extraData={extraData}
949948
key={listID}
949+
overrideProps={{isInvertedVirtualizedList: true}}
950950
getItemType={(item) => item.actionName}
951951
shouldMaintainVisibleContentPosition={shouldMaintainVisibleContentPosition}
952952
initialScrollKey={linkedReportActionID}

0 commit comments

Comments
 (0)