Skip to content

[iOS] Shadow styles are unexpectedly applied to elements in the subtree #33969

Description

@necolas

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

  1. Open: https://snack.expo.dev/MmY5VRLKN
  2. Select iOS preview
  3. 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

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact: BugThe issue represents a bug somewhereNever gets stalePrevent those issues and PRs from getting stalePlatform: iOSiOS applications.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions