fix(ios): force layout of view when changing the safe area insets (#9773)

This commit is contained in:
Eduardo Speroni
2022-02-14 16:37:38 -03:00
committed by Nathan Walker
parent e59f3ff669
commit a1ba1f6d03

View File

@ -197,6 +197,7 @@ export class View extends ViewCommon implements ViewDefinition {
const boundsOrigin = nativeView.bounds.origin;
const boundsFrame = adjustedFrame || frame;
nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
nativeView.layoutIfNeeded();
this._raiseLayoutChangedEvent();
this._isLaidOut = true;