mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
11 lines
336 B
TypeScript
11 lines
336 B
TypeScript
import proxy = require("ui/core/proxy");
|
|
|
|
export class View extends proxy.ProxyObject {
|
|
public addToParent(parent: UIKit.UIView) {
|
|
var nativeInstance: UIKit.UIView = this["ios"];
|
|
if (nativeInstance) {
|
|
// TODO: Check for existing parent
|
|
parent.addSubview(nativeInstance);
|
|
}
|
|
}
|
|
}
|