Skip to content

[Drag & Drop blocks] Crash when closing the editor while dragging (only Android) #4801

@fluiddot

Description

@fluiddot

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:

  1. Start dragging a block.
  2. While moving the block around the screen, tap the back button with another finger to close the editor.
  3. Observe that the app crashes.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions