Page MenuHomePhabricator

D14099.id46318.diff
No OneTemporary

D14099.id46318.diff

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
@@ -547,6 +547,8 @@
...
};
+ declare type MakeMutable = <T>(initialValue: T) => SharedValue<T>;
+
declare type UseSharedValue = <T>(val: T) => SharedValue<T>;
declare type UseDerivedValue = <T>(
@@ -651,6 +653,7 @@
declare export var event: Event;
declare export var useValue: UseValue;
declare export var useAnimatedGestureHandler: UseAnimatedGestureHandler;
+ declare export var makeMutable: MakeMutable;
declare export var useSharedValue: UseSharedValue;
declare export var useDerivedValue: UseDerivedValue;
declare export var useAnimatedStyle: UseAnimatedStyle;
@@ -709,6 +712,7 @@
+event: Event,
+useValue: UseValue,
+useAnimatedGestureHandler: UseAnimatedGestureHandler,
+ +makeMutable: MakeMutable,
+useSharedValue: UseSharedValue,
+useDerivedValue: UseDerivedValue,
+useAnimatedStyle: UseAnimatedStyle,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 1:25 PM (16 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681804
Default Alt Text
D14099.id46318.diff (1 KB)

Event Timeline