Description
There's an edge case where dragging a block and closing the editor at the same time leads to a crash.
Stacktrace:
AndroidRuntime: at com.swmansion.reanimated.layoutReanimation.AnimationsManager.prepareDataForAnimationWorklet(AnimationsManager.java:368)
Looks like this is a known issue (software-mansion/react-native-reanimated#2959) in the Reanimated library and there's already a fix. In order to address it, we could try either upgrade the library or apply the fix by patching the forked repository.
How to reproduce it:
- Start dragging a block.
- While moving the block around the screen, tap the back button with another finger to close the editor.
- Observe that the app crashes.