Commit 28f508d
authored
fix(animation): replace useAnimatedValue with Animated.Value to fix runtime error
Removed `useAnimatedValue` import from `react-native` and replaced
`useAnimatedValue(0)` with `new Animated.Value(0)`.
Reason:
`useAnimatedValue` is not available in the current React Native version,
causing the runtime error:
TypeError: (0, _reactNative.useAnimatedValue) is not a function
Using `Animated.Value` restores compatibility with the Animated API and
keeps the fade animation working correctly.1 parent 012ecef commit 28f508d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
0 commit comments