MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / _setNativeImage

Method _setNativeImage

packages/core/ui/image/index.ios.ts:67–83  ·  view source on GitHub ↗
(nativeImage: UIImage)

Source from the content-addressed store, hash-verified

65 }
66
67 public _setNativeImage(nativeImage: UIImage) {
68 if (this.nativeViewProtected?.image) {
69 this.nativeViewProtected.image = null;
70
71 queueGC();
72 }
73
74 if (this.nativeViewProtected) {
75 this.nativeViewProtected.image = nativeImage;
76 }
77 this._templateImageWasCreated = false;
78 this.setTintColor(this.style?.tintColor);
79
80 if (this._imageSourceAffectsLayout) {
81 this.requestLayout();
82 }
83 }
84
85 _setNativeClipToBounds() {
86 if (this.nativeViewProtected) {

Callers 1

Calls 3

setTintColorMethod · 0.95
queueGCFunction · 0.90
requestLayoutMethod · 0.45

Tested by

no test coverage detected