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

Method createNativeView

packages/core/ui/image/index.ios.ts:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 private _templateImageWasCreated: boolean;
15
16 public createNativeView() {
17 const imageView = UIImageView.new();
18 imageView.contentMode = UIViewContentMode.ScaleAspectFit;
19 imageView.userInteractionEnabled = true;
20
21 return imageView;
22 }
23
24 public initNativeView(): void {
25 super.initNativeView();

Callers

nothing calls this directly

Calls 1

newMethod · 0.45

Tested by

no test coverage detected