Files
Hristo Hristov e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00

14 lines
507 B
TypeScript

import { HtmlView as HtmlViewDefinition } from ".";
import { View, Property } from "../core/view";
export * from "../core/view";
export class HtmlViewBase extends View implements HtmlViewDefinition {
public html: string;
}
// HtmlViewBase.prototype.recycleNativeView = true;
// TODO: Can we use Label.ios optimization for affectsLayout???
export const htmlProperty = new Property<HtmlViewBase, string>({ name: "html", defaultValue: "", affectsLayout: true });
htmlProperty.register(HtmlViewBase);