mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Fix https://github.com/NativeScript/NativeScript/issues/4043 * Merge ios & android implementation
12 lines
481 B
TypeScript
12 lines
481 B
TypeScript
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "."
|
|
import { View } from "../core/view"
|
|
|
|
export class Placeholder extends View implements PlaceholderDefinition {
|
|
public static creatingViewEvent = "creatingView";
|
|
|
|
public createNativeView() {
|
|
const args = <CreateViewEventData>{ eventName: Placeholder.creatingViewEvent, object: this, view: undefined, context: this._context };
|
|
this.notify(args);
|
|
return args.view;
|
|
}
|
|
} |