Skip to content

Commit

Permalink
SlideAnimationView [nfc]: Add simple type annotation.
Browse files Browse the repository at this point in the history
Similar to what we did in the previous commit.
  • Loading branch information
chrisbobbe committed Jan 14, 2021
1 parent a0d1e95 commit 45e330c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/SlideAnimationView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class SlideAnimationView extends PureComponent<Props, State> {
const { property, from, to, movement, style } = this.props;
const animationValue = this.state.animationIndex.interpolate({
inputRange: [0, 1],
outputRange: movement === 'out' ? [from, to] : [to, from],
outputRange: ((movement === 'out' ? [from, to] : [to, from]): number[]),
});

const slideStyle = { transform: [{ [property]: animationValue }] };
Expand Down

0 comments on commit 45e330c

Please sign in to comment.