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

Element content does not update when the corresponding data changes

Open dragosbocancea opened this issue 3 years ago • 2 comments

This package has external dependencies of react-native-reanimated and react-native-gesture-handler which must be installed separately. Before opening an issue related to animations or gestures please verify that you have completed ALL installation steps, including the changes to MainActivity.

Describe the bug The rendered FlatList does not update when the data it uses changes. I have to interact with an element to see the change.

To Reproduce Create a button on an element that changes the object corresponting to that element and change something visually on the element based on the value that changes when the button is pressed.

Platform & Dependencies Please list any applicable dependencies in addition to those below (react-navigation etc).

  • react-native-draggable-flatlist version: "^3.1.1"
  • Platform: OnePlus 5T
  • React Native or Expo version: "expo": "^45.0.0"
  • Reanimated version: "react-native-reanimated": "^2.8.0"
  • React Native Gesture Handler version: "~2.2.1"

Additional context

https://user-images.githubusercontent.com/96242409/172357777-1e1b0b71-5783-4764-970a-7b919764d42e.mp4

dragosbocancea avatar Jun 07 '22 09:06 dragosbocancea

@dragosbocancea hey I am facing the same issue, did you find any way out? My NestedList content is also not updating.

pranavgawri avatar Jul 21 '22 04:07 pranavgawri

Have you added the changed data field to extraData prop on the DraggableFlatLis component?

markmccoid avatar Jul 21 '23 04:07 markmccoid