omahili / react-native-reorderable-list

A reorderable list for React Native applications, powered by Reanimated 2 🚀
MIT License
115 stars 5 forks source link

Odd behaviour with ListHeader/ListFooterComponent #3

Closed hirbod closed 2 years ago

hirbod commented 2 years ago

Hi @omahili ,

awesome library so far, thanks for making a reanimated 2 version. It is somehow working but has some odd behaviour when you use ListHeader and ListFooter. As soon as I pick the element, it starts jumping. I made a video to make it obvious what I am actually talking about. It works okish when I pick elements from the center, but not from the top. As soon as I longpress, weird things start to happen.

Any ideas how to optimize this? Thank you very much!

https://user-images.githubusercontent.com/504909/162433404-e602c7a5-c3cd-4fda-839f-b7e61f09e68f.mp4

hirbod commented 2 years ago

Well, never mind, I am an idiot. I did not set the new state in handleOrder, thats why it messed it up of course.