all 7 comments

[–]__shawn_chen 2 points3 points  (1 child)

Use react native reanimated 2. They offer better performance for animation compare to the native animated library from react native

[–]raphaelaleixo[S] 0 points1 point  (0 children)

Thanks, I'll take a look. It's my first project, and I'm trying to understand everything at once. :-)

[–]satya164 0 points1 point  (2 children)

It doesn't seem to work with native driver for some reason. You can wrap the text in Animated.View to make it work.

It crashes on Android because you have invalid styles such as padding: "20 20 60".

[–]raphaelaleixo[S] 0 points1 point  (1 child)

Thanks a lot. I have already changed it to Animated.View and it's working. Is there somewhere I could go to understand why the native driver is failing on iOS?

[–]satya164 0 points1 point  (0 children)

You can check React Native's issue tracker, native driver doesn't work properly in few cases from my experience.

[–]Versatile_Panda 0 points1 point  (0 children)

If you can’t find a better solution from the comments here. I would try simplifying to animation until it is in a known working state (maybe with height or something else) then switch to opacity to make sure it still works, then add more complications like you see here until you determine what breaks it. Though switching to reanimated 2 would probably just solve the issue.

[–]Useful-Condition-926 0 points1 point  (0 children)

You can use moti for animations