Skip to content

Commit 8296135

Browse files
committed
Fix blank space on scrollToBottom
1 parent 4672791 commit 8296135

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hooks/useReportScrollManager/index.native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function useReportScrollManager(): ReportScrollManagerData {
2727
}
2828

2929
scrollPositionRef.current = {offset: 0};
30-
flatListRef.current?.scrollToOffset({animated: false, offset: 0});
30+
flatListRef.current.scrollToIndex({animated: false, index: 0});
3131
};
3232

3333
/**

src/hooks/useReportScrollManager/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function useReportScrollManager(): ReportScrollManagerData {
2525
return;
2626
}
2727

28-
flatListRef.current.scrollToOffset({animated: false, offset: 0});
28+
flatListRef.current.scrollToIndex({animated: false, index: 0});
2929
};
3030

3131
/**

0 commit comments

Comments
 (0)