{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/6035","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/6035/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/6035/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/6035/events","html_url":"https://github.com/NativeScript/NativeScript/issues/6035","id":338841597,"node_id":"MDU6SXNzdWUzMzg4NDE1OTc=","number":6035,"title":"[android] Image's imageSource property is undefined","user":{"login":"PeterStaev","id":9464097,"node_id":"MDQ6VXNlcjk0NjQwOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/9464097?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterStaev","html_url":"https://github.com/PeterStaev","followers_url":"https://api.github.com/users/PeterStaev/followers","following_url":"https://api.github.com/users/PeterStaev/following{/other_user}","gists_url":"https://api.github.com/users/PeterStaev/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterStaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterStaev/subscriptions","organizations_url":"https://api.github.com/users/PeterStaev/orgs","repos_url":"https://api.github.com/users/PeterStaev/repos","events_url":"https://api.github.com/users/PeterStaev/events{/privacy}","received_events_url":"https://api.github.com/users/PeterStaev/received_events","type":"User","site_admin":false},"labels":[{"id":203688365,"node_id":"MDU6TGFiZWwyMDM2ODgzNjU=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/backlog","name":"backlog","color":"ededed","default":false},{"id":203690377,"node_id":"MDU6TGFiZWwyMDM2OTAzNzc=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/os:%20android","name":"os: android","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"NickIliev","id":18008302,"node_id":"MDQ6VXNlcjE4MDA4MzAy","avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickIliev","id":18008302,"node_id":"MDQ6VXNlcjE4MDA4MzAy","avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-06T07:56:58Z","updated_at":"2018-07-31T09:56:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\nWe appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. That's why\r\n - issues that are not constructive or describe problems that cannot be reproduced will be closed\r\n - feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days will be closed \r\n-->\r\n\r\n### Did you verify this is a real problem by searching the [NativeScript Forum](http://forum.nativescript.org) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nYes\r\n\r\n### Tell us about the problem\r\nIf you set up an `Image` with the `src` property set to some local image if you want to extract the `imageSource` it ends up being `undeinfed`. Under iOS the `imageSource` property is correctly initialized and returns a value that can be used. \r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 4.1\r\n- Cross-platform modules: 4.1\r\n- Runtime(s): 4.1\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nPlayground demonstrating the problem: https://play.nativescript.org/?template=play-tsc&id=ZvX1HH\r\n\r\nTap on the button alerts that the `imageSource` is `undefined` on android and shows `[object Object]` under iOS. \r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/409164954","html_url":"https://github.com/NativeScript/NativeScript/issues/6035#issuecomment-409164954","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/6035","id":409164954,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTE2NDk1NA==","user":{"login":"NickIliev","id":18008302,"node_id":"MDQ6VXNlcjE4MDA4MzAy","avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T09:56:22Z","updated_at":"2018-07-31T09:56:22Z","author_association":"MEMBER","body":"Hey, @PeterStaev can you elaborate what is the case where you need `ImageSource` instance? I guess it is to access some of the image options like the size but still, it would be interesting to see if there are another possibilities instead of creating an ImageSource (which would be the case if we have to provide an image source by design)\r\n\r\nOne of the reasons why the property is undefined on Android is because creating an `ImageSource` is an expensive operation and multiple large files can lead to lower performance and even OOM issues on Android."}}
{"actor":{"display_login":"NickIliev"}}