diff --git a/src/common/SlideAnimationView.js b/src/common/SlideAnimationView.js index 2ab34e07680..298c8b94d4c 100644 --- a/src/common/SlideAnimationView.js +++ b/src/common/SlideAnimationView.js @@ -46,7 +46,7 @@ export default class SlideAnimationView extends PureComponent { 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]: number[]) : ([to, from]: number[]), }); const slideStyle = { transform: [{ [property]: animationValue }] };