Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable background drawables outside of ReactViewGroup #43723

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NickGerleman
Copy link
Contributor

Summary:
ReactViewGroup hosts border drawing and clipping drawable as a background drawable, sometimes placing it in a layer with another existing drawable.

This roughly tries to replicate that, but with view managers assuming some level of ownership of any background drawables set on the underlying view.

We replicate same rough behavior for ReactViewGroup before, but now ViewManagers could add these background drawables to arbitrary view-managers. Enabling e.g. box-shadow in more places.

I am not 100% on some of the details here around LayerDrawable invalidation.

Changelog: [Internal]

Differential Revision: D55565114

NickGerleman and others added 2 commits March 30, 2024 18:42
Summary:
ReactViewGroup hosts border drawing and clipping drawable as a background drawable, sometimes placing it in a layer with another existing drawable.

This roughly tries to replicate that, but with view managers assuming some level of ownership of any background drawables set on the underlying view.

We replicate same rough behavior for ReactViewGroup before, but now ViewManagers could add these background drawables to arbitrary view-managers. Enabling e.g. box-shadow in more places.

I am not 100% on some of the details here around LayerDrawable invalidation.

Changelog: [Internal]

Differential Revision: D55565114
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 31, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55565114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants