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 authored and Facebook GitHub Bot committed 2022-05-03 12:04:02 -07:00
1 parent 7b86fa2b79
commit 598c2e02fd
8 files changed
+10 -34

No files matched your search

@@ -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',
});