Page MenuHomePhabricator

D14098.id46316.diff
No OneTemporary

D14098.id46316.diff

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 = <F>(func: F) => F;
- declare type CancelAnimation = (animation: number) => void;
+ declare type CancelAnimation = <T>(animation: SharedValue<T>) => void;
declare type AnimatedKeyboardInfo = {|
+height: SharedValue<number>,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 12:26 AM (4 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681814
Default Alt Text
D14098.id46316.diff (984 B)

Event Timeline