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 ReactViewGroup.getBackgroundColor() #47906

Closed
wants to merge 1 commit into from

Conversation

tdn120
Copy link

@tdn120 tdn120 commented Nov 22, 2024

Summary:
There are no usages in the repo. External usages should be using BackgroundStyleApplicator.

Changelog: [Android][Breaking] Removed ReactViewGroup.getBackgroundColor()

Differential Revision: D66368623

Summary:
There are no usages in the repo.  External usages should be using [BackgroundStyleApplicator](https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt#L82).

Changelog: [Android][Breaking] Removed ReactViewGroup.getBackgroundColor()

Differential Revision: D66368623
@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 Nov 22, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6a472c5.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by Thomas Nardone in 6a472c5

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

kkafar added a commit to software-mansion/react-native-screens that referenced this pull request Jan 31, 2025
)

## Description


* facebook/react-native#45688 introduced
`BackgroundStyleApplicator`
* facebook/react-native#47906 removed our
current accessor
* somewhere along the way the `ColorDrawable` used previously by
`ReactViewGroup` has been exchanged for `CompositeBackgroundDrawable`
added in facebook/react-native#45688

> [!caution]
~This PR breaks compatibility with older versions of react-native. While
this is fine on Fabric, this also breaks things for Paper.~
> ~Possible solution is to detect react native version in gradle and add
versioned sourcesets with implementations for given react native
versions.~
>
> Not up to date. I've added versioned source files to ensure
appropriate backward compatibility down to 0.74.

> [!note]
> We need CI to ensure the projects do build on all versions we support.

## Changes

Migrated to `BackgroundStyleApplicator API` to resolve background color
of `contentWrapper`.

## Test code and steps to reproduce

`TestAndroidTransitions` - the form sheet should no longer be cut.

## Checklist

- [ ] Ensured that CI passes
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