We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d94b278 commit d6baddbCopy full SHA for d6baddb
targets/native/src/AnimatedTransform.ts
@@ -1,10 +1,5 @@
1
-import { each } from 'shared'
2
-import {
3
- Animated,
4
- isAnimated,
5
- AnimatedValue,
6
- AnimatedObject,
7
-} from '@react-spring/animated'
+import { each, isFluidValue } from 'shared'
+import { Animated, AnimatedValue, AnimatedObject } from '@react-spring/animated'
8
9
type Transform = { [key: string]: string | number | Animated }
10
@@ -21,7 +16,7 @@ export class AnimatedTransform extends AnimatedObject {
21
16
? this.source.map(source => {
22
17
const transform: any = {}
23
18
each(source, (source, key) => {
24
- transform[key] = isAnimated(source) ? source.getValue() : source
19
+ transform[key] = isFluidValue(source) ? source.get() : source
25
20
})
26
return transform
27
0 commit comments