alan-eu/react-native-fast-shadow

Shadow gets apply to all the child components wrapped in a View

Rakshit17patel opened this issue · 1 comments

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

Hi @Rakshit17patel

Could you please provide a code sample and a screenshot of the bug you encounter?

@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.