We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6432f1e commit f605788Copy full SHA for f605788
src/hooks/useAutoScroll.tsx
@@ -115,9 +115,10 @@ export function useAutoScroll<T>() {
115
return null;
116
if ("scrollToOffset" in flatListRef.current)
117
return flatListRef.current as FlatList<T>;
118
- //@ts-ignore backwards compat
119
- if ("getNode" in flatListRef.current)
+ if ("getNode" in flatListRef.current) {
+ //@ts-ignore backwards compat
120
return flatListRef.current.getNode();
121
+ }
122
123
}
124
0 commit comments