From eff3b21d5e8421e36deea08452c2bf85e30c27da Mon Sep 17 00:00:00 2001 From: Ethan Sharabi Date: Tue, 30 Mar 2021 09:24:25 +0300 Subject: [PATCH] Remove redundant ts-expect-error directives --- src/components/tabController/TabBar.tsx | 1 - src/components/tabController/index.tsx | 2 -- src/incubator/TouchableOpacity.tsx | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/components/tabController/TabBar.tsx b/src/components/tabController/TabBar.tsx index 1c29c8a890..5dab570bdd 100644 --- a/src/components/tabController/TabBar.tsx +++ b/src/components/tabController/TabBar.tsx @@ -16,7 +16,6 @@ import FadedScrollView from './FadedScrollView'; import {useScrollToItem} from '../../hooks'; -// @ts-expect-error const {Code, Value, interpolate: _interpolate, interpolateNode, block, set} = Reanimated; const interpolate = interpolateNode || _interpolate; diff --git a/src/components/tabController/index.tsx b/src/components/tabController/index.tsx index b9b05d89d9..19903acd43 100644 --- a/src/components/tabController/index.tsx +++ b/src/components/tabController/index.tsx @@ -1,7 +1,6 @@ // TODO: support commented props import React, {Component} from 'react'; import _ from 'lodash'; -// @ts-expect-error import Reanimated, {Easing as _Easing, EasingNode} from 'react-native-reanimated'; import {State} from 'react-native-gesture-handler'; import {timing, fract, between} from 'react-native-redash'; @@ -34,7 +33,6 @@ const { block, onChange, interpolate: _interpolate, - // @ts-expect-error interpolateNode, round, multiply diff --git a/src/incubator/TouchableOpacity.tsx b/src/incubator/TouchableOpacity.tsx index d6ad070516..b835fe11da 100644 --- a/src/incubator/TouchableOpacity.tsx +++ b/src/incubator/TouchableOpacity.tsx @@ -2,7 +2,6 @@ import React, {PureComponent} from 'react'; import {processColor, StyleSheet, LayoutChangeEvent} from 'react-native'; import _ from 'lodash'; -// @ts-expect-error import Reanimated, {Easing as _Easing, EasingNode} from 'react-native-reanimated'; import {TapGestureHandler, LongPressGestureHandler, State, LongPressGestureHandlerGestureEvent} from 'react-native-gesture-handler'; import {asBaseComponent, forwardRef, BaseComponentInjectedProps, ForwardRefInjectedProps} from '../commons/new'; @@ -17,7 +16,6 @@ const { eq, neq, interpolate: _interpolate, - // @ts-expect-error interpolateNode, Extrapolate, Value,