From c8694552925b8efa3ad713c651268af13ce0ef40 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Sun, 21 Jul 2024 22:48:56 +0530 Subject: [PATCH] fix: warning - ref.measureLayout must be called with a node handle. Signed-off-by: krishna2323 --- src/components/NestableDraggableFlatList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NestableDraggableFlatList.tsx b/src/components/NestableDraggableFlatList.tsx index 15593527..99d7a9bd 100644 --- a/src/components/NestableDraggableFlatList.tsx +++ b/src/components/NestableDraggableFlatList.tsx @@ -48,7 +48,7 @@ function NestableDraggableFlatListInner( }); const onListContainerLayout = useStableCallback(async ({ containerRef }) => { - const nodeHandle = findNodeHandle(scrollableRef.current); + const nodeHandle = scrollableRef.current const onSuccess = (_x: number, y: number) => { listVerticalOffset.value = y;