You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
[![npm][version-badge]][version]
4
4
[![MIT License][license-badge]][license]
5
5
6
-
Helpers that let you observe the value of an [Animated][animated]or[Reanimated][reanimated] values and convert between them using native events.
6
+
Helpers that let you observe [Animated][animated]and[Reanimated][reanimated] values and convert between them using native events.
7
7
8
8
## Use case
9
9
@@ -21,7 +21,7 @@ The library exports the following components:
21
21
22
22
### `AnimatedConverter`
23
23
24
-
A component that converts between an [`Animated.Node`][animated.node] and a [`SharedValue`][reanimated.sharedvalue] natively.
24
+
A component that converts between an [`Animated.Node`][animated.node] and a [`SharedValue<number>`][reanimated.sharedvalue] natively.
25
25
26
26
It accepts the following props:
27
27
@@ -55,7 +55,7 @@ A component that observes changes in a given value and emits an event when the v
55
55
56
56
It accepts the following props:
57
57
58
-
-`value`: The value to observe. It can be a `number`, [`Animated.Node`][animated.node] for [Animated][animated], [`SharedValue`][reanimated.sharedvalue] or [`DerivedValue`][reanimated.derivedvalue] for [Reanimated][reanimated].
58
+
-`value`: The value to observe. It can be a `number`, [`Animated.Node`][animated.node] for [Animated][animated], [`SharedValue<number>`][reanimated.sharedvalue] or [`DerivedValue<number>`][reanimated.derivedvalue] for [Reanimated][reanimated].
59
59
-`onValueChange`: A callback function that is called when the observed value changes.
The library renders a native component that receives an [`Animated.Node`][animated.node] or [`SharedValue`][reanimated.sharedvalue] value. When the value changes, the library dispatches an event with this value.
80
+
The library renders a native component that receives an [`Animated.Node`][animated.node] or [`SharedValue<number>`][reanimated.sharedvalue] value. When the value changes, the library dispatches an event with this value.
81
81
82
-
This event is then used with [`Animated.event`][animated.event] (with native driver) or [`useEvent`][reanimated.useevent] to update [`Animated.Value`][animated.value] or [`SharedValue`][reanimated.sharedvalue] respectively, depending on the usage.
82
+
This event is then used with [`Animated.event`][animated.event] (with native driver) or [`useEvent`][reanimated.useevent] to update [`Animated.Value`][animated.value] or [`SharedValue<number>`][reanimated.sharedvalue] respectively, depending on the usage.
0 commit comments