A while ago I've noticed that layout animations on mobile throw warning if one tries to add animation into View that has transform property. Now, while working on #5277 I've decided to remove code responsible for applying existing transform on web. Here are the reasons why I believe it is good idea:
It unifies behavior with mobile platforms, which are main target of reanimated.
Some of transforms were not applied correctly and required additional calculations to be implemented (like skew).
Removing existing transforms means removing a lot of ifs and unnecessary code.
Summary
A while ago I've noticed that layout animations on mobile throw warning if one tries to add animation into
View
that hastransform
property. Now, while working on #5277 I've decided to remove code responsible for applying existing transform on web. Here are the reasons why I believe it is good idea:reanimated
.transforms
were not applied correctly and required additional calculations to be implemented (likeskew
).ifs
and unnecessary code.Test plan
Tested on example app on
LA
examples.