Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3508507
D14098.id46316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
984 B
Referenced Files
None
Subscribers
None
D14098.id46316.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:35 PM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681814
Default Alt Text
D14098.id46316.diff (984 B)
Attached To
Mode
D14098: [native] Fix reanimated cancelAnimation flow type
Attached
Detach File
Event Timeline
Log In to Comment