diff --git a/Libraries/Utilities/buildStyleInterpolator.js b/Libraries/Utilities/buildStyleInterpolator.js index c2eb7937afc945..a7ab6d89385f8f 100644 --- a/Libraries/Utilities/buildStyleInterpolator.js +++ b/Libraries/Utilities/buildStyleInterpolator.js @@ -189,17 +189,17 @@ const buildStyleInterpolator = function(anims) { ); didMatrix = true; } else { - var next = computeNextValLinearScalar(anim, value); + const next = computeNextValLinearScalar(anim, value); didChange = setNextValAndDetectChange(result, name, next, didChange); } } else if (anim.type === 'constant') { - var next = anim.value; + const next = anim.value; didChange = setNextValAndDetectChange(result, name, next, didChange); } else if (anim.type === 'step') { - var next = value >= anim.threshold ? anim.to : anim.from; + const next = value >= anim.threshold ? anim.to : anim.from; didChange = setNextValAndDetectChange(result, name, next, didChange); } else if (anim.type === 'identity') { - var next = value; + const next = value; didChange = setNextValAndDetectChange(result, name, next, didChange); } }