mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-16 12:19:30 +08:00
Remove var in Libraries/Utilities/buildStyleInterpolator.js (#22112)
Summary: Replaces the keywords var with const in Libraries/Utilities/buildStyleInterpolator.js Pull Request resolved: https://github.com/facebook/react-native/pull/22112 Differential Revision: D12919286 Pulled By: TheSavior fbshipit-source-id: bc39a1efc2c372365d95cd305cc6d915f030b209
This commit is contained in:
committed by
Facebook Github Bot
parent
368518eff1
commit
b01bf06dba
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user