Skip to content

Commit

Permalink
Move deprecation and documentation into class.
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Feb 22, 2018
1 parent 46894f1 commit 2d7b0b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Libraries/Animated/src/AnimatedImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ import type {SpringAnimationConfig} from './animations/SpringAnimation';
import type {Mapping, EventConfig} from './AnimatedEvent';
import type {InterpolationConfigType} from './nodes/AnimatedInterpolation';

/**
* Interpolates the value before updating the property, e.g. mapping 0-1 to
* 0-10.
*
* @deprecated
*/
const interpolateMethod = function(
config: InterpolationConfigType,
): AnimatedInterpolation {
Expand Down
8 changes: 8 additions & 0 deletions Libraries/Animated/src/nodes/AnimatedNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ class AnimatedNode {
return [];
}

/**
* Deprecated - Use `Animated.interpolate(animation, config)` instead.
*
* Interpolates the value before updating the property, e.g. mapping 0-1 to
* 0-10. Not available on all node types.
*
* @deprecated
*/
interpolate(config: any): AnimatedNode {
throw new Error(
'This node type does not implement an interpolate method,' +
Expand Down

0 comments on commit 2d7b0b2

Please sign in to comment.