[React Native] Update 2048

This commit is contained in:
Alex Akers
2015-03-13 15:30:29 -07:00
parent b51f51e47d
commit cc74944bef
4 changed files with 40 additions and 36 deletions

View File

@@ -23,10 +23,11 @@ var Animation = {
): number {
var nodeHandle = +node.getNodeHandle();
var easingSample = AnimationUtils.evaluateEasingFunction(duration, easing);
RCTAnimationManager.startAnimation(nodeHandle, AnimationUtils.allocateTag(), duration, delay, easingSample, properties);
var tag: number = RCTAnimationManager.startAnimation(nodeHandle, AnimationUtils.allocateTag(), duration, delay, easingSample, properties);
return tag;
},
stopAnimation: function(tag) {
stopAnimation: function(tag: number) {
RCTAnimationManager.stopAnimation(tag);
},
};