Add Linear easing to AnimationUtils

Summary:
Simple linear easing also very useful.
Closes https://github.com/facebook/react-native/pull/794
Github Author: Ivan Starkov <istarkov@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
Ivan Starkov 2015-04-23 06:10:36 -07:00
parent c219f61818
commit a36da5130b
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@
type EasingFunction = (t: number) => number;
var defaults = {
linear: function(t: number): number {
return t;
},
easeInQuad: function(t: number): number {
return t * t;
},