-
-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Items return to original position after drag is complete #532
Comments
it isn't clear. can you provide more code? does it always snap back or only some of the time? |
Yes, it snaps back every time. Here is the entire component. Its worth noting, that this component lives inside a tab view, in case that has any relevance.
Here is the rendered item component:
Thanks for any suggestions. |
I got rid of everything except a simple test list, and still the draggable item returns to its original position. Here is a test component that I rendered without anything else:
Not sure what else to try. |
I'm a colossal idiot. I somehow overlooked that I needed to set the data on the re-order function. Please accept my apology on behalf of my idiocy and for any waste of time. Hopefully if someone is as bit of an idiot as me, they will run across this thread. |
I have the same problem. Please elaborate how you solved it. Thanks! |
Describe the bug
After dragging an item to a new position, after a short period, the item returns to the original position.
Platform & Dependencies
react-native-draggable-flatlist version:
4.0.1
Platform:
iOS
React Native or Expo version:
0.72.7
Reanimated version:
3.6.1
React Native Gesture Handler version:
2.14.0
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-11.at.12.54.42.mp4
My first guess was the list component was being re-rendered, but it is not.
Here's the basic code:
Any suggestions?
The text was updated successfully, but these errors were encountered: