From efa397a46e6d15959a3f567ea49c6845d12382a8 Mon Sep 17 00:00:00 2001 From: Marcus Stenbeck Date: Fri, 24 May 2019 15:51:24 +0200 Subject: [PATCH] =?UTF-8?q?feat(=F0=9F=93=A6):=20reset=20frame=20time=20wh?= =?UTF-8?q?en=20toValue=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AnimationRunners.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AnimationRunners.ts b/src/AnimationRunners.ts index aa75a19f..a2177901 100644 --- a/src/AnimationRunners.ts +++ b/src/AnimationRunners.ts @@ -11,6 +11,7 @@ const { set, startClock, clockRunning, + onChange, } = Animated; export function runDecay( @@ -96,6 +97,7 @@ export function runTiming( }; return block([ + onChange(config.toValue, set(state.frameTime, 0)), cond(clockRunning(clock), 0, [ set(state.finished, 0), set(state.time, 0),