nandorojo / moti

🐼 The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
4.01k stars 127 forks source link

Animation issue on Android #166

Closed andreibahachenka closed 2 years ago

andreibahachenka commented 2 years ago

Hey all I'm using the latest version of the moti lab and face issues on the android device

Here is my code

import { View as AnimationView } from 'moti'

<AnimationView
                    from={{
                        flex: 0,
                        backgroundColor: '#FF621F',
                        height: 10,
                    }}
                    animate={{
                        flex: 0.6,
                        backgroundColor: '#FF621F',
                        height: 10,
                    }}
                    transition={{ type: 'timing', duration: 800 }}
 />

on iOS everything works fine, but android shows nothing

what goes wrong?

nandorojo commented 2 years ago

maybe you can’t animate flex

andreibahachenka commented 2 years ago

with width the same actually

nandorojo commented 2 years ago

percentage needs to be a string for width

andreibahachenka commented 2 years ago

I understand, but still doesn't work on ios everything is correct

nandorojo commented 2 years ago

I’m not totally sure what you mean. Can you reproduce on Expo Snack?

andreibahachenka commented 2 years ago

I’m not totally sure what you mean. Can you reproduce on Expo Snack?

i have updated code above, check please

nandorojo commented 2 years ago

can you reproduce on expo snack

andreibahachenka commented 2 years ago

hm, interesting, but in expo snack it works with the same code

nandorojo commented 2 years ago

that means the issue is either something in your code or reanimated 2.3. but in either case, it seems like it's not moti, so i'm going to close this unless you can reproduce it in a snack for me to help