fix: Do not redraw on iOS if background image is 'none' #9800
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
What is the current behavior?
On iOS, views with
background-image: none
are redrawn multiple times while they shouldn't. Even if you just set abackground-color
,background-image
is automatically set tonone
(I don't know what is setting this value though).What is the new behavior?
Views are redrawn only if the view has a background-image, a non-uniform border or a border radius.
Additional information
I identified this problem because my app crashed because of a constantly redrawn background. This PR does not fix the problem in my app (I made other app-specific changes) but I thought that the change is still needed for better performance.
I also could not run the tests (I think the README is outdated because the
tests
folder does not exist).