From 55ec8152479694b261f3e78b12eb799393a553c2 Mon Sep 17 00:00:00 2001 From: Michal Osadnik Date: Sun, 1 Sep 2019 12:46:55 +0100 Subject: [PATCH] fix: stack with gesture enabled --- packages/stack/src/views/Stack/Card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/stack/src/views/Stack/Card.tsx b/packages/stack/src/views/Stack/Card.tsx index 09586186..ea15b0dc 100755 --- a/packages/stack/src/views/Stack/Card.tsx +++ b/packages/stack/src/views/Stack/Card.tsx @@ -598,6 +598,7 @@ export default class Card extends React.Component { nativeEvent: { translationX: this.gestureUntraversed, velocityX: this.velocityUntraversed, + state: this.gestureState, }, }, ]); @@ -634,7 +635,7 @@ export default class Card extends React.Component { }) ); - // Keep track of the style in a property to avoid changing the animated node when deps change` + // Keep track of the style in a property to avoid changing the animated node when deps change // The style shouldn't change in the middle of the animation and should refer to what was there at the start of it // Which will be the last value when just before the render which started the animation // We need to make sure to update this when the running animation ends