mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
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:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user