Skip to content

Commit fad099d

Browse files
authored
Merge pull request Expensify#89747 from callstack-internal/VickyStash/bugfix/88054-android-scrollbar
Fix android chat scroll indicator
2 parents 23fd229 + ca5df2e commit fad099d

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';
@@ -929,7 +928,7 @@ function ReportActionsList({
929928
shouldFocusToTopOnMount && styles.justifyContentEnd,
930929
shouldScrollToEndAfterLayout && StyleUtils.getHiddenChatContentStyle(),
931930
]}
932-
showsVerticalScrollIndicator={getShowScrollIndicator(shouldScrollToEndAfterLayout)}
931+
showsVerticalScrollIndicator={!shouldScrollToEndAfterLayout}
933932
onEndReached={onEndReached}
934933
onEndReachedThreshold={0.75}
935934
onStartReached={onStartReached}
@@ -942,6 +941,7 @@ function ReportActionsList({
942941
onViewableItemsChanged={onViewableItemsChanged}
943942
extraData={extraData}
944943
key={listID}
944+
overrideProps={{isInvertedVirtualizedList: true}}
945945
getItemType={(item) => item.actionName}
946946
shouldMaintainVisibleContentPosition={shouldMaintainVisibleContentPosition}
947947
initialScrollKey={linkedReportActionID}

0 commit comments

Comments
 (0)