DEV Community

Discussion on: How Moti is the shortest way to create universal animation based on reanimated 2

Collapse
 
staunchcfo profile image
Emeka Okezie

Hello Abdelhalim Ahmed, I am having some issues with animating my React Native application, using Moti.

I keep have my animation state initialised like this:

const animationState = useAnimationState({
signIn: {
height: SIZES.height * 0.55
},
signUp: {
height: SIZES.height * 0.7
}
});

But I keep getting the error in the screenshot attached to this post.
Image description

Is there anything you can suggest I do please.