Use Flow type inference for interpolation outputRange

Summary:
Changelog:
[Internal]

Cleans up unnecessary type casts / suppressions throughout the codebase following D35869725.

Reviewed By: javache

Differential Revision: D35870027

fbshipit-source-id: eefcb544b19ba93587011cdfd4046d18dddb246e
This commit is contained in:
Moti Zilberman
2022-05-03 12:04:02 -07:00
committed by Facebook GitHub Bot
parent 7b86fa2b79
commit 598c2e02fd
8 changed files with 10 additions and 34 deletions
@@ -119,7 +119,7 @@ function SwipeableCard(props: {
const {width} = useWindowDimensions();
const rotation = movementX.interpolate({
inputRange: [-width / 2, 0, width / 2],
outputRange: (['-5deg', '0deg', '5deg']: $ReadOnlyArray<string>),
outputRange: ['-5deg', '0deg', '5deg'],
extrapolate: 'clamp',
});