react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

fix: warning - ref.measureLayout must be called with a node handle.

Open Krishna2323 opened this issue 1 year ago • 4 comments

Issue

When a new list item is added in NestableDraggableFlatList we get the warning Warning: ref.measureLayout must be called with a node handle or a ref to a native component.

This happens because we are using findNodeHandle and this PR in react-native now allows measureLayout to be passed a ref and throw the warning if node is passed.

https://github.com/computerjazz/react-native-draggable-flatlist/blob/ebfddc4877e8f65d5391a748db61b9cd030430ba/src/components/NestableDraggableFlatList.tsx#L51 https://github.com/computerjazz/react-native-draggable-flatlist/blob/ebfddc4877e8f65d5391a748db61b9cd030430ba/src/components/NestableDraggableFlatList.tsx#L60

Demo

https://github.com/user-attachments/assets/826bd37a-e34e-49f7-874b-8b18346714fe

Krishna2323 avatar Jul 21 '24 17:07 Krishna2323

@computerjazz Hey mate, can you merge it?

DimaIvashchuk avatar Oct 03 '25 09:10 DimaIvashchuk

@computerjazz would be great if you could merge this, thanks.

erikarens avatar Oct 23 '25 12:10 erikarens

@computerjazz could you merge it?

avrcoelho avatar Nov 15 '25 13:11 avrcoelho

@computerjazz can this be merged :)?

truesteps avatar Nov 16 '25 16:11 truesteps