OS: Android 8.0
RN: 57.7
react-native-draggable-flatlist - latest
On drag, when the animation has not finished yet, but we have moved the element to the place where the animation ends.
Result: the item disappears.
Expected: normal behavior.

It happens when spacerIndex and activeRow is equal.
me too
anyone solve this?
I think if you add the code below, inside the onPanResponderRelease after const { activeRow, spacerIndex } = this.state; it will prevent this from happening. Could you confirm it?
if (activeRow == spacerIndex) {
this.onReleaseAnimationEnd();
return;
}
@eminsr No, It doesn't work.....
I have this problem too! :frowning_face:
Same thing here
Same thing here
@computerjazz we need your help :(
Looking at a previous comment, i found that the issue can be fixed by getting line 398 like this:
horizontal ? { width: isActiveRow ? 1 : undefined } : { height: isActiveRow ? 1 : undefined },
I added a forceUpdate after my components onMoveEnd callback.
Can you check this solution?
@galias11 WOW, ITS WORK! Thx!!! Are you f*ing god?!
Most helpful comment
Looking at a previous comment, i found that the issue can be fixed by getting line 398 like this:
horizontal ? { width: isActiveRow ? 1 : undefined } : { height: isActiveRow ? 1 : undefined },I added a forceUpdate after my components onMoveEnd callback.
Can you check this solution?