From 45e330c20c2824800870b490ab72d5675cc7c01a Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Thu, 14 Jan 2021 12:30:13 -0500 Subject: [PATCH] SlideAnimationView [nfc]: Add simple type annotation. Similar to what we did in the previous commit. --- src/common/SlideAnimationView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/SlideAnimationView.js b/src/common/SlideAnimationView.js index 2ab34e07680..32b2c25f03d 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] : [to, from]): number[]), }); const slideStyle = { transform: [{ [property]: animationValue }] };