react-native-reanimated
react-native-reanimated copied to clipboard
Layout transitions don't animate shadows on iOS
Description
When using Layout transitions to animate size changes of a View with a shadow, only the background gets animated, while the shadow keeps the previous size.
https://github.com/software-mansion/react-native-reanimated/assets/52881070/d65b306c-f0fb-419f-9251-82ae5cd8e04f
Steps to reproduce
- Run the snack provided below on iOS.
- Press the "Change size" button a couple of times.
Snack or a link to a repository
https://snack.expo.dev/@luca71/shadow-issue
Reanimated version
3.3.0-3.6.1
React Native version
0.73.1
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
With current implementation during layout transition you can only animate position and size of component :/
Only happens on iOS though, Android works fine. Would really be great if that was made possible on iOS aswell
Facing the same issue. Were anyone able to find a way around?