MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / initNativeView

Method initNativeView

packages/core/ui/button/index.ios.ts:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public initNativeView(): void {
30 super.initNativeView();
31
32 this._tapHandler = TapHandlerImpl.initWithOwner(new WeakRef(this));
33 this.nativeViewProtected.addTargetActionForControlEvents(this._tapHandler, 'tap', UIControlEvents.TouchUpInside);
34 this._setDefaultPaddings(this.nativeViewProtected.contentEdgeInsets);
35 }
36
37 public disposeNativeView(): void {
38 this._tapHandler = null;

Callers

nothing calls this directly

Calls 2

initWithOwnerMethod · 0.45
_setDefaultPaddingsMethod · 0.45

Tested by

no test coverage detected