diff --git a/native/chat/swipeable-message.react.js b/native/chat/swipeable-message.react.js --- a/native/chat/swipeable-message.react.js +++ b/native/chat/swipeable-message.react.js @@ -224,7 +224,7 @@ ctx /*: { [string]: mixed } */, ) => { ctx.translationAtStart = translateX.value; - cancelAnimation(translateX.value); + cancelAnimation(translateX); }, // prettier-ignore onActive: ( diff --git a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js --- a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js +++ b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js @@ -589,7 +589,7 @@ declare type RunOnJS = (func: F) => F; - declare type CancelAnimation = (animation: number) => void; + declare type CancelAnimation = (animation: SharedValue) => void; declare type AnimatedKeyboardInfo = {| +height: SharedValue,