mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
16 lines
537 B
TypeScript
16 lines
537 B
TypeScript
import { HtmlView as HtmlViewDefinition } from ".";
|
|
import { View, Property, CSSType } from "../core/view";
|
|
|
|
export * from "../core/view";
|
|
|
|
@CSSType("HtmlView")
|
|
export class HtmlViewBase extends View implements HtmlViewDefinition {
|
|
public html: string;
|
|
}
|
|
|
|
HtmlViewBase.prototype.recycleNativeView = "auto";
|
|
|
|
// TODO: Can we use Label.ios optimization for affectsLayout???
|
|
export const htmlProperty = new Property<HtmlViewBase, string>({ name: "html", defaultValue: "", affectsLayout: true });
|
|
htmlProperty.register(HtmlViewBase);
|