mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
7b86fa2b79
commit
598c2e02fd
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user