mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Binding Image's src to 'res://icon' fails as bindings wrap string in String
This commit is contained in:
@ -28,7 +28,7 @@ export abstract class ImageBase extends View implements ImageDefinition {
|
||||
let value = this.src;
|
||||
let originalValue = value;
|
||||
let sync = this.loadMode === "sync";
|
||||
if (typeof value === "string") {
|
||||
if (typeof value === "string" || value instanceof String) {
|
||||
value = value.trim();
|
||||
this.imageSource = null;
|
||||
this["_url"] = value;
|
||||
|
Reference in New Issue
Block a user