diff --git a/src/components/BoxView/RNBoxView.ts b/src/components/BoxView/RNBoxView.ts index bea48a3..d748fae 100644 --- a/src/components/BoxView/RNBoxView.ts +++ b/src/components/BoxView/RNBoxView.ts @@ -31,18 +31,14 @@ const setBoxViewProps = ( */ export class RNBoxView extends QWidget implements RNComponent { native: any; - _layout?: QBoxLayout; initialProps?: BoxViewProps; children: Array> = []; - get layout() { - return this.layout; + return super.layout as QBoxLayout | undefined; } - - set layout(l: QBoxLayout) { - this._layout = l; + set layout(l: QBoxLayout | undefined) { + super.layout = l; } - setProps(newProps: BoxViewProps, oldProps: BoxViewProps): void { if (this.layout) { setBoxViewProps(this, newProps, oldProps);