fix(ios): unset cached frame before updating origin point (#10499)

This commit is contained in:
Dimitris-Rafail Katsampas
2024-04-02 22:34:14 +03:00
committed by GitHub
parent 0c8c945b33
commit 3a486e540c

View File

@@ -444,8 +444,13 @@ export class View extends ViewCommon implements ViewDefinition {
CATransaction.setDisableActions(true);
nativeView.layer.anchorPoint = newPoint;
// Bounds have to be recalculated after anchor point update
if (this._cachedFrame) {
this._setNativeViewFrame(nativeView, this._cachedFrame);
const frame = this._cachedFrame;
this._cachedFrame = null;
this._setNativeViewFrame(nativeView, frame);
}
// Make sure new origin also applies to outer shadow layers