Skip to content

Commit a7ff7e7

Browse files
yuwenmemonOSBotify
authored andcommitted
Merge pull request #61392 from Expensify/marcaaron-fixOnScrollToIndexError
[CP Staging] Noop for `onScrollToIndexFailed` (cherry picked from commit 66906f2) (cherry-picked to staging by AndrewGable)
1 parent 4a3a769 commit a7ff7e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Search/SearchList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ type SearchListProps = Pick<FlatListPropsWithLayout<SearchListItem>, 'onScroll'
7878
onViewableItemsChanged?: (info: {changed: ViewToken[]; viewableItems: ViewToken[]}) => void;
7979
};
8080

81+
const onScrollToIndexFailed = () => {};
82+
8183
function SearchList(
8284
{
8385
data,
@@ -380,6 +382,7 @@ function SearchList(
380382
ListFooterComponent={ListFooterComponent}
381383
removeClippedSubviews
382384
onViewableItemsChanged={onViewableItemsChanged}
385+
onScrollToIndexFailed={onScrollToIndexFailed}
383386
/>
384387
<Modal
385388
isVisible={isModalVisible}

0 commit comments

Comments
 (0)