Skip to content

Commit c10c757

Browse files
committed
remove onRef prop
1 parent 703e8ac commit c10c757

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/context/refContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext, useEffect } from "react";
1+
import React, { useContext } from "react";
22
import { useMemo, useRef } from "react";
33
import { FlatList, PanGestureHandler } from "react-native-gesture-handler";
44
import Animated from "react-native-reanimated";
@@ -52,7 +52,7 @@ function useSetupRefs<T>({
5252
flatListRef: React.ForwardedRef<FlatList<T>>;
5353
}) {
5454
const props = useProps<T>();
55-
const { onRef, animationConfig = DEFAULT_PROPS.animationConfig } = props;
55+
const { animationConfig = DEFAULT_PROPS.animationConfig } = props;
5656

5757
const { isTouchActiveNative } = useAnimatedValues();
5858

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export type DraggableFlatListProps<T> = Modify<
2828
onDragBegin?: (index: number) => void;
2929
onDragEnd?: (params: DragEndParams<T>) => void;
3030
onPlaceholderIndexChange?: (placeholderIndex: number) => void;
31-
onRef?: (ref: FlatList<T>) => void;
3231
onRelease?: (index: number) => void;
3332
onScrollOffsetChange?: (scrollOffset: number) => void;
3433
renderItem: RenderItem<T>;

0 commit comments

Comments
 (0)