Skip to content

Commit

Permalink
fix(ios): force layout of view when changing the safe area insets (#9773
Browse files Browse the repository at this point in the history
)
  • Loading branch information
edusperoni authored and NathanWalker committed Feb 18, 2022
1 parent 4ebab83 commit b0309fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/ui/core/view/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b0309fd

Please sign in to comment.