You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Krishna2323
changed the title
Warning: Warning: ref.measureLayout must be called with a node handle.
Warning: ref.measureLayout must be called with a node handle.
Jul 21, 2024
Describe the bug
When a new list item is added in
NestableDraggableFlatList
we get the warningWarning: 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.react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx
Line 51 in ebfddc4
react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx
Line 60 in ebfddc4
Demo
340080842-d9cafd74-479f-4ec5-abfa-7cc51a51138e.mp4
Platform & Dependencies
Please list any applicable dependencies in addition to those below (react-navigation etc).
Additional context
Discussion in react-native-web
The text was updated successfully, but these errors were encountered: