Skip to content

Commit

Permalink
fix props using for the move function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmoreno510 committed Dec 4, 2019
1 parent 40187f0 commit b76d9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TranslateX.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TranslateX extends PureComponent {
const { value } = this.props;

if (prevProps.value !== value) {
this.move(this.props);
this.move(value);
}
}
move = toValue => {
Expand Down
2 changes: 1 addition & 1 deletion src/TranslateY.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TranslateY extends PureComponent {
const { value } = this.props;

if (prevProps.value !== value) {
this.move(this.props);
this.move(value);
}
}
move = toValue => {
Expand Down

0 comments on commit b76d9b7

Please sign in to comment.