From 446163d3f890af19fbcda341b3aa7f1eb8efa082 Mon Sep 17 00:00:00 2001 From: kmmccafferty96 Date: Fri, 8 May 2020 04:20:32 -0400 Subject: [PATCH] fix: fix ios hmr (#8559) --- nativescript-core/ui/core/view/view.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativescript-core/ui/core/view/view.ios.ts b/nativescript-core/ui/core/view/view.ios.ts index 789d76577..327bca8ef 100644 --- a/nativescript-core/ui/core/view/view.ios.ts +++ b/nativescript-core/ui/core/view/view.ios.ts @@ -61,7 +61,7 @@ export class View extends ViewCommon implements ViewDefinition { this._privateFlags |= PFLAG_FORCE_LAYOUT; const nativeView = this.nativeViewProtected; - if (nativeView) { + if (nativeView && nativeView.setNeedsLayout) { nativeView.setNeedsLayout(); }