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

Fix colour comparison on Android #6383

Merged
merged 6 commits into from
Aug 14, 2024
Merged

Fix colour comparison on Android #6383

merged 6 commits into from
Aug 14, 2024

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Aug 6, 2024

Summary

Due to some recent changes some views are instances of CSSBackgroundDrawable instead of ReactViewBackgroundDrawable. I didn't track which PR introduced this change, since ReactViewBackgroundDrawable is marked as deprecated anyway.

This PR contains changes to make snapshot colour comparison work again.

image

Test plan

@Latropos Latropos changed the title First commit Fix colour comparison on Android Aug 6, 2024
@Latropos Latropos requested a review from piaskowyk August 7, 2024 08:42
@Latropos Latropos marked this pull request as ready for review August 7, 2024 08:42
@Latropos Latropos added this pull request to the merge queue Aug 14, 2024
Merged via the queue into main with commit b2f4e1d Aug 14, 2024
10 checks passed
@Latropos Latropos deleted the acynk/fix-color-comparison branch August 14, 2024 08:03
tjzel pushed a commit that referenced this pull request Aug 17, 2024
Due to some recent changes some views are instances of
CSSBackgroundDrawable instead of ReactViewBackgroundDrawable. I didn't
track which PR introduced this change, since
`ReactViewBackgroundDrawable` is marked as deprecated anyway.

This PR contains changes to make snapshot colour comparison work again.

<img width="635" alt="image"
src="https://github.com/user-attachments/assets/6f6fbf7b-7bcc-4cc6-9a53-54d6861e6dcf">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants