Skip to content

Conversation

@MichelBahl
Copy link

Summary:

A gradient appears when a square has one rounded rect.

Fix:
1 .#49442
2. callstack/react-native-paper#4662

This PR (#49531) provides a workaround, but in my opinion this issue should never occur.

Changelog:

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 21, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 21, 2025
@jorge-cab
Copy link
Contributor

This solution doesn't make too much sense to me. This breaks all stretchable borders. Can you explain what your reasoning is?

@MichelBahl
Copy link
Author

This solution doesn't make too much sense to me. This breaks all stretchable borders. Can you explain what your reasoning is?

The reason is, when bringing the app from back to foreground or vise versa the gradient below occurs on simulator for a short time (On my physical iPad Pro 2020 this gradients persist).
CGRectMake one zero

Do you mean at the top left rounded corner, pixels are clearly visible ?

.layer.shouldRasterize = YES;
yes_shouldRasterize

.layer.shouldRasterize = NO;
no_shouldRasterize

Can you provide me an example when stretchable borders were broken ?

@jorge-cab
Copy link
Contributor

You can just load RNTester and you'll see a bunch of borders are now broken.
Screenshot 2025-10-22 at 8 33 50 AM

This is because you are braking the contentsCenter rectangle by settings its size to 0

@jorge-cab
Copy link
Contributor

Your idea about it being an issue on stretchable was right though. I just put up a fix for it! #54237

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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants