Skip to content

Commit

Permalink
chore: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Mar 19, 2022
1 parent 5897e78 commit 8f9bca7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions example-expo
Submodule example-expo added at a532d8
3 changes: 2 additions & 1 deletion src/components/holdItem/HoldItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Animated, {
withSequence,
withSpring,
useAnimatedReaction,
AnimationCallback,
} from 'react-native-reanimated';
//#endregion

Expand Down Expand Up @@ -195,7 +196,7 @@ const HoldItemComponent = ({
});
};

const onCompletion = (isFinised: boolean) => {
const onCompletion: AnimationCallback = (isFinised?: boolean) => {
'worklet';
const isListValid = items && items.length > 0;
if (isFinised && isListValid) {
Expand Down
1 change: 1 addition & 0 deletions src/components/menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { getColor } from './calculations';
import { AnimatedIcon } from '../provider/Provider';

const ItemComponent = IS_IOS ? TouchableOpacity : GHTouchableOpacity;
// @ts-ignore
const AnimatedTouchable = Animated.createAnimatedComponent(ItemComponent);

type MenuItemComponentProps = {
Expand Down

0 comments on commit 8f9bca7

Please sign in to comment.