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

Items jumps up/down inside scrollview after scroll

Open saikats5 opened this issue 4 years ago • 2 comments

I have created list item using react-native-draggable-flatlist and I am dragging the whole item by tapping on an icon on the right hand side and the whole item has a click functionality except the tap icon, the whole list is inside scrollview, the tap and drag/drop everything works fine, the moment I scroll the list and try to drag/drop any item, ontap the list items jumps up/down over other items at all positions, sometimes replace it with the other one

saikats5 avatar Apr 30 '20 03:04 saikats5

@saikats5 See if the following message appears on the console::

WARN: VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.

WARN: VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.

Because FlatList of the same thing that ScrollView, it's redundant. Removing the ScrollView is expected to solve your problem.

Best regards, Cesar Barros

CesarBarros avatar May 16 '20 08:05 CesarBarros

Not sure why dislikes but the above actually solved my problem.

dilantha111 avatar Jan 16 '21 06:01 dilantha111