+2
-4
src/screens/Profile/Sections/Labels.tsx
+2
-4
src/screens/Profile/Sections/Labels.tsx
···
48
48
const t = useTheme()
49
49
50
50
const onScrollToTop = useCallback(() => {
51
-
// @ts-expect-error TODO fix this
52
-
scrollElRef.current?.scrollTo({
51
+
scrollElRef.current?.scrollToOffset({
53
52
animated: isNative,
54
-
x: 0,
55
-
y: -headerHeight,
53
+
offset: -headerHeight,
56
54
})
57
55
}, [scrollElRef, headerHeight])
58
56