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

Remove ReactImageView Legacy Background Path #46167

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Differential Revision: D61657253

@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 Aug 22, 2024
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

react-native-bot commented Aug 22, 2024

Fails
🚫

❔ This pull request needs a description.

Generated by 🚫 dangerJS against 5982972

@facebook-github-bot
Copy link
Contributor

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

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 3, 2024
Summary:
## This Stack

This removes the non-Style-applicator background management paths of the different native components. There have been multiple conflicting changes, and bugs added bc harder to reason about, which motivates making this change as soon as possible. This also lets us formalize guarantees that BaseViewManager may safely manipulate background styling of all built in native components.

There is one still known issue, where BackgroundStyleApplicator does not propagate I18nManager derived layout direction to borders (compared to Android derived root direction). This is mostly an issue for apps that with LTR and RTL context, or force a layout direction, which I would guess is relatively rare, so my plan is to forward fix this later this by enabling set_android_layout_direction which will solve that problem mopre generically.

Pull Request resolved: facebook#46167

Changelog: [Internal]

Differential Revision: D61657253
Summary:
Pull Request resolved: facebook#46167

## This Diff

This removes the legacy path from ReactImageView and its view manager.

## This Stack

This removes the non-Style-applicator background management paths of the different native components. There have been multiple conflicting changes, and bugs added bc harder to reason about, which motivates making this change as soon as possible. This also lets us formalize guarantees that BaseViewManager may safely manipulate background styling of all built in native components.

There is one still known issue, where BackgroundStyleApplicator does not propagate I18nManager derived layout direction to borders (compared to Android derived root direction). This is mostly an issue for apps that with LTR and RTL context, or force a layout direction, which I would guess is relatively rare, so my plan is to forward fix this later this by enabling set_android_layout_direction which will solve that problem mopre generically.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D61657253
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 890970a.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @NickGerleman in 890970a

When will my fix make it into a release? | How to file a pick request?

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 Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants