react-native
react-native copied to clipboard
[iOS] Shadow styles are unexpectedly applied to elements in the subtree
Description
Setting the iOS-only shadow*
style props on a View can unexpectedly apply shadows to multiple elements in the view's subtree. This issue can be reproduced in Fabric too.
Version
0.68
Output of npx react-native info
...
Steps to reproduce
- Open: https://snack.expo.dev/MmY5VRLKN
- Select iOS preview
- Notice how the shadow applied to a wrapping view causes text elements to receive a shadow, and the background to be tinted the color of the shadow
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/MmY5VRLKN

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Remains an issue
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.