Skip to content

Commit ede6a0f

Browse files
committed
fix(android): crash while drawing in dispatchGetDisplayList
1 parent 629df83 commit ede6a0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/java/com/swmansion/rnscreens/stack/anim/ScreensAnimation.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ internal class ScreensAnimation(
1212
t: Transformation,
1313
) {
1414
super.applyTransformation(interpolatedTime, t)
15-
// interpolated time should be the progress of the current transition
16-
mFragment.dispatchTransitionProgressEvent(interpolatedTime, !mFragment.isResumed)
15+
mFragment.view?.post {
16+
// interpolated time should be the progress of the current transition
17+
mFragment.dispatchTransitionProgressEvent(interpolatedTime, !mFragment.isResumed)
18+
}
1719
}
1820
}

0 commit comments

Comments
 (0)