From 7b666a238d6acc66aeb085c0863abd524356548e Mon Sep 17 00:00:00 2001 From: Antti Kupila Date: Thu, 1 Mar 2018 15:48:47 +0100 Subject: [PATCH] Set default value for back overshoot --- Libraries/Animated/src/Easing.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Libraries/Animated/src/Easing.js b/Libraries/Animated/src/Easing.js index c5e54b24723ee9..f935cdbfc5077d 100644 --- a/Libraries/Animated/src/Easing.js +++ b/Libraries/Animated/src/Easing.js @@ -175,10 +175,7 @@ class Easing { * * - http://tiny.cc/back_default (s = 1.70158, default) */ - static back(s: number): (t: number) => number { - if (s === undefined) { - s = 1.70158; - } + static back(s: number = 1.70158): (t: number) => number { return t => t * t * ((s + 1) * t - s); }