mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
25 lines
596 B
TypeScript
25 lines
596 B
TypeScript
import { Layout as LayoutDefinition } from "./layout";
|
|
import { LayoutBase } from "./layout-base";
|
|
|
|
export * from "./layout-base";
|
|
export class Layout extends LayoutBase implements LayoutDefinition {
|
|
private _view: UIView;
|
|
|
|
constructor() {
|
|
super();
|
|
this._view = UIView.new();
|
|
}
|
|
|
|
get ios(): UIView {
|
|
return this._view;
|
|
}
|
|
|
|
get _nativeView(): UIView {
|
|
return this._view;
|
|
}
|
|
|
|
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
|
// Don't call super because it will measure the native element.
|
|
}
|
|
}
|