computerjazz / react-native-draggable-flatlist

A drag-and-drop-enabled FlatList for React Native
MIT License
1.94k stars 406 forks source link

Element content does not update when the corresponding data changes #390

Open dragosbocancea opened 2 years ago

dragosbocancea commented 2 years ago

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).

Additional context

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

pranavgawri commented 2 years ago

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

markmccoid commented 1 year ago

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