diff --git a/example-expo b/example-expo new file mode 160000 index 0000000..a532d8c --- /dev/null +++ b/example-expo @@ -0,0 +1 @@ +Subproject commit a532d8cbe923eccf72ae1d634017abcfbc6845d0 diff --git a/src/components/holdItem/HoldItem.tsx b/src/components/holdItem/HoldItem.tsx index 4ca4875..ed05a38 100644 --- a/src/components/holdItem/HoldItem.tsx +++ b/src/components/holdItem/HoldItem.tsx @@ -21,6 +21,7 @@ import Animated, { withSequence, withSpring, useAnimatedReaction, + AnimationCallback, } from 'react-native-reanimated'; //#endregion @@ -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) { diff --git a/src/components/menu/MenuItem.tsx b/src/components/menu/MenuItem.tsx index e8e2571..efa3e73 100644 --- a/src/components/menu/MenuItem.tsx +++ b/src/components/menu/MenuItem.tsx @@ -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 = {