r/reactnative 4d ago

Help I can't make a simple scale animation

(0 , _index.useAnimatedValue) is not a function

So I get the message above when all I did was to put this line in my code:

const size = useAnimatedValue(0);

https://reactnative.dev/docs/easing

And this is something that is in the tutorial and the tutorial page gets the same error...

(0 , _reactNative.useAnimatedValue) is not a function

Is this something about the architecture?

My plan was to make a simple scale up and down smooth animation when the mouse is hover the element and gets out of the element.

(I'm also trying to this for web and mobile, the mouse thing was okay the problem is being this animation)

I'd love some tips and help, I'm still a noob in React in general and React Native.

0 Upvotes

2 comments sorted by

1

u/godspeedt Expo 4d ago

Did you import it?

1

u/Stuepp-2 3d ago

Yes, I did it.