fix(ios): do not redraw if background image is 'none' (#9800)

This commit is contained in:
Sébastien JEAN
2022-03-01 22:22:36 +01:00
committed by GitHub
parent 5550e6943e
commit 402a7bba2e

View File

@ -350,7 +350,7 @@ export class View extends ViewCommon implements ViewDefinition {
}
const background = this.style.backgroundInternal;
const backgroundDependsOnSize = background.image || !background.hasUniformBorder() || background.hasBorderRadius();
const backgroundDependsOnSize = (background.image && background.image !== 'none') || !background.hasUniformBorder() || background.hasBorderRadius();
if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
this._redrawNativeBackground(background);