Question about needsOffscreenAlphaCompositing with Animated.View #4887
Unanswered
susonthapa
asked this question in
Q&A
Replies: 2 comments 1 reply
-
same here |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same here, anyone have any solutions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is an open issue on React Native GitHub repository about Shadow and opacity on Android. The solution for the time being is to use
needsOffscreenAlphaCompositing
. Since this prop is quite expensive it is recommended to only use it during the animation. When I tried to do that withAnimated.View
it didn't work. If I set the prop to true it works but setting it to false and then enabling it later doesn't seem to work.Here is a repository that I was working on that has this issue.
Video of the issue.
Kapture.2023-08-04.at.21.14.43.mp4
As you can see the fading animation causes weird shadow issues on Android.
Beta Was this translation helpful? Give feedback.
All reactions