diff --git a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js index c0b5f5aff3..4036783f18 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +++ b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js @@ -45,9 +45,6 @@ function LogBoxInspectorSourceMapStatus(props: Props): React.Node { animation, rotate: animated.interpolate({ inputRange: [0, 1], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error - * detected during the deployment of v0.38.0. To see the error, - * remove this comment and run flow */ outputRange: ['0deg', '360deg'], }), }); diff --git a/packages/rn-tester/js/examples/Animated/ComposingExample.js b/packages/rn-tester/js/examples/Animated/ComposingExample.js index db40cec6a9..e168a349f9 100644 --- a/packages/rn-tester/js/examples/Animated/ComposingExample.js +++ b/packages/rn-tester/js/examples/Animated/ComposingExample.js @@ -160,7 +160,7 @@ function ComposingExampleItem({ {boxIndexes.map(boxIndex => { const translateX = xTranslations.current[boxIndex].interpolate({ inputRange: [0, 1], - outputRange: ([0, maxXTranslation]: [number, number]), + outputRange: [0, maxXTranslation], }); return ( diff --git a/packages/rn-tester/js/examples/Animated/RotatingImagesExample.js b/packages/rn-tester/js/examples/Animated/RotatingImagesExample.js index f37c5532ed..976c8edb98 100644 --- a/packages/rn-tester/js/examples/Animated/RotatingImagesExample.js +++ b/packages/rn-tester/js/examples/Animated/RotatingImagesExample.js @@ -56,22 +56,22 @@ function RotatingImagesView({useNativeDriver}: {useNativeDriver: boolean}) { { scale: anim.interpolate({ inputRange: [0, 1], - outputRange: ([1, 10]: $ReadOnlyArray), + outputRange: [1, 10], }), }, { translateX: anim.interpolate({ inputRange: [0, 1], - outputRange: ([0, 100]: $ReadOnlyArray), + outputRange: [0, 100], }), }, { rotate: anim.interpolate({ inputRange: [0, 1], - outputRange: ([ + outputRange: [ '0deg', '360deg', // 'deg' or 'rad' - ]: $ReadOnlyArray), + ], }), }, ], diff --git a/packages/rn-tester/js/examples/Animated/TransformBounceExample.js b/packages/rn-tester/js/examples/Animated/TransformBounceExample.js index a54acfcff0..01cdc19e98 100644 --- a/packages/rn-tester/js/examples/Animated/TransformBounceExample.js +++ b/packages/rn-tester/js/examples/Animated/TransformBounceExample.js @@ -62,22 +62,22 @@ function TransformBounceView({useNativeDriver}: {useNativeDriver: boolean}) { { scale: anim.interpolate({ inputRange: [0, 1], - outputRange: ([1, 4]: $ReadOnlyArray), + outputRange: [1, 4], }), }, { translateX: anim.interpolate({ inputRange: [0, 1], - outputRange: ([0, 500]: $ReadOnlyArray), + outputRange: [0, 500], }), }, { rotate: anim.interpolate({ inputRange: [0, 1], - outputRange: ([ + outputRange: [ '0deg', '360deg', // 'deg' or 'rad' - ]: $ReadOnlyArray), + ], }), }, ], diff --git a/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js b/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js index 74a0da22cb..1314309108 100644 --- a/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js +++ b/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js @@ -145,9 +145,6 @@ class LoopExample extends React.Component<{...}, $FlowFixMeState> { { opacity: this.state.value.interpolate({ inputRange: [0, 0.5, 1], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error - * detected during the deployment of v0.38.0. To see the error, - * remove this comment and run flow */ outputRange: [0, 1, 0], }), }, @@ -243,9 +240,6 @@ class EventExample extends React.Component<{...}, $FlowFixMeState> { { rotate: this.state.anim.interpolate({ inputRange: [0, 1], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow - * error detected during the deployment of v0.38.0. To see - * the error, remove this comment and run flow */ outputRange: ['0deg', '1deg'], }), }, diff --git a/packages/rn-tester/js/examples/ScrollView/ScrollViewAnimatedExample.js b/packages/rn-tester/js/examples/ScrollView/ScrollViewAnimatedExample.js index dd6b9d9b08..6b774ed863 100644 --- a/packages/rn-tester/js/examples/ScrollView/ScrollViewAnimatedExample.js +++ b/packages/rn-tester/js/examples/ScrollView/ScrollViewAnimatedExample.js @@ -32,16 +32,10 @@ class ScrollViewAnimatedExample extends Component<{...}> { render(): React.Node { const interpolated = this._scrollViewPos.interpolate({ inputRange: [0, 1], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error detected - * during the deployment of v0.38.0. To see the error, remove this - * comment and run flow */ outputRange: [0, 0.1], }); const interpolated2 = this._scrollViewPos.interpolate({ inputRange: [0, 1], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error detected - * during the deployment of v0.38.0. To see the error, remove this - * comment and run flow */ outputRange: ['0deg', '1deg'], }); return ( diff --git a/packages/rn-tester/js/examples/SwipeableCardExample/SwipeableCardExample.js b/packages/rn-tester/js/examples/SwipeableCardExample/SwipeableCardExample.js index b775236b96..fe7c947e90 100644 --- a/packages/rn-tester/js/examples/SwipeableCardExample/SwipeableCardExample.js +++ b/packages/rn-tester/js/examples/SwipeableCardExample/SwipeableCardExample.js @@ -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), + outputRange: ['-5deg', '0deg', '5deg'], extrapolate: 'clamp', }); diff --git a/packages/rn-tester/js/examples/Transform/TransformExample.js b/packages/rn-tester/js/examples/Transform/TransformExample.js index 169dd4b4ed..02f152cc2d 100644 --- a/packages/rn-tester/js/examples/Transform/TransformExample.js +++ b/packages/rn-tester/js/examples/Transform/TransformExample.js @@ -38,9 +38,6 @@ function AnimateTansformSingleProp() { { rotate: theta.interpolate({ inputRange: [0, 100], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error - * detected during the deployment of v0.38.0. To see the - * error, remove this comment and run flow */ outputRange: ['0deg', '360deg'], }), }, @@ -79,9 +76,6 @@ function Flip() { { rotateX: theta.interpolate({ inputRange: [0, 180], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error - * detected during the deployment of v0.38.0. To see the - * error, remove this comment and run flow */ outputRange: ['0deg', '180deg'], }), }, @@ -100,9 +94,6 @@ function Flip() { { rotateX: theta.interpolate({ inputRange: [0, 180], - /* $FlowFixMe[speculation-ambiguous] (>=0.38.0) - Flow error - * detected during the deployment of v0.38.0. To see the - * error, remove this comment and run flow */ outputRange: ['180deg', '360deg'], }), },