Open ivandortulov opened 10 months ago
@ivandortulov There is already an opened issue for this: https://github.com/nuclearpasta/react-native-drax/issues/161
You can try to patch it like in the PR and see if that goes well for you, or you can wait for a newer version (but we currently don't have a deadline, it will take probably a few months).
Another workaround that did the job for us was remounting (not rerendering!) the DraxView with the same props. Indeed, it's ugly, but at least it works...
@LunatiqueCoder Thank you for the answer.
I went with the remount solution and it does work. There is no snapback, but I can live without it.
@ivandortulov happy to help!
@LunatiqueCoder Thanks for the info so far. Is there any update on when this fix might be implemented? I have a very simple use case in my application and wondering if it's worth switching to a different library. Thanks!
Description
I downloaded the library and got it up and running pretty quickly.
However, now I have an issue when I drag the view and release it onto a receiver, the view is not removed. It remains visible on the screen. Also, the snapback is not working.
I want the view to always disappear when it is released, i.e. the drag ends. I want the view to snap back into position when it is released somewhere, other than a receiver.
My setup is as follows:
App.tsx
Receiver:
Draggable:
Result:
Environment