Hello Clarence Ho,
Thank for the detailed report and the ready for test sample application!
After some investigation, we were able to find the reason for this issue and the reason is a bug introduced with NativeScript 3.0.0 related to the src
property of ImageSource
module. The bug is that the src
property was only accepting string
but not ImageSource
as a value in an Android application.
The good news is that this problem is already fixed and is currently in the master branch for NativeScript modules
. The fix will be officially released with our incoming patch versions 3.0.1 which is expected within few days.
Meanwhile, you can use one of the following solutions as a temporary workaround:
You can apply the fix using the next
version of tns-core-modules.
Steps needed to apply the next version
rm -rf node_modules
rm -rf platforms
tns plugin add tns-core-modules@next
tns run android
No changes in the code are required - the application will show the images in Android as well.
In your test application change the image_source
property for Item class to accept a string
(instead of ImageSource) and then in your item-service file and pass directly the URL as a string instead of ImageSource.
Once again I am sorry for any inconvenience caused and I hope you will find the solutions provided applicable.
Telerik by Progress