diff --git a/src/components/DraggableList/index.tsx b/src/components/DraggableList/index.tsx index 812e364f50..7e70e2f07d 100644 --- a/src/components/DraggableList/index.tsx +++ b/src/components/DraggableList/index.tsx @@ -42,7 +42,7 @@ interface SortableListProps { itemHeight: number /** Ref to the parent Animated.ScrollView for auto-scroll. */ scrollRef?: AnimatedRef - /** Scroll offset shared value from useScrollViewOffset. */ + /** Scroll offset shared value from useScrollOffset. */ scrollOffset?: SharedValue } diff --git a/src/components/DraggableList/index.web.tsx b/src/components/DraggableList/index.web.tsx index 7dd02cb76c..e5a158b57a 100644 --- a/src/components/DraggableList/index.web.tsx +++ b/src/components/DraggableList/index.web.tsx @@ -22,7 +22,7 @@ interface SortableListProps { itemHeight: number /** Ref to the parent Animated.ScrollView for auto-scroll. Ignored on web. */ scrollRef?: AnimatedRef - /** Scroll offset shared value from useScrollViewOffset. Ignored on web. */ + /** Scroll offset shared value from useScrollOffset. Ignored on web. */ scrollOffset?: SharedValue } diff --git a/src/screens/SavedFeeds.tsx b/src/screens/SavedFeeds.tsx index 2f3718735b..db574318f3 100644 --- a/src/screens/SavedFeeds.tsx +++ b/src/screens/SavedFeeds.tsx @@ -1,7 +1,7 @@ import {useState} from 'react' import {View} from 'react-native' import type Animated from 'react-native-reanimated' -import {useAnimatedRef, useScrollViewOffset} from 'react-native-reanimated' +import {useAnimatedRef, useScrollOffset} from 'react-native-reanimated' import {type AppBskyActorDefs} from '@atproto/api' import {TID} from '@atproto/common-web' import {msg} from '@lingui/core/macro' @@ -69,7 +69,7 @@ function SavedFeedsInner({ useOverwriteSavedFeedsMutation() const navigation = useNavigation() const scrollRef = useAnimatedRef() - const scrollOffset = useScrollViewOffset(scrollRef) + const scrollOffset = useScrollOffset(scrollRef) /* * Use optimistic data if exists and no error, otherwise fallback to remote