We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67968e4 commit 410673aCopy full SHA for 410673a
1 file changed
versioned_docs/version-6.x/use-scroll-to-top.md
@@ -60,7 +60,7 @@ function Albums() {
60
const ref = React.useRef(null);
61
62
useScrollToTop(React.useRef({
63
- scrollToTop: () => ref.current?.scrollToOffset({ offset: -100 }),
+ scrollToTop: () => ref.current?.scrollTo({ y: 100 }),
64
}));
65
66
return <ScrollView ref={ref}>{/* content */}</ScrollView>;
0 commit comments