Shadow gets apply to all the child components wrapped in a View
Rakshit17patel opened this issue · 1 comments
Rakshit17patel commented
Describe the bug
On Wrapping a View in ShadowView Component, the shadow gets apply to all the child component of View.
Expected behavior
The shadow should be only on View Container not on child component
simontreny commented
Could you please provide a code sample and a screenshot of the bug you encounter?
davoam commented
@Rakshit17patel this happens if the view you are applying the shadow does not have a backgroundColor
property. But if the backgroundColor
property has value with an alpha channel, RN still applies shadows to children elements on iOS.
See this question for example.