Skip to content

Image replacement is not respected during tns run android #2981

@vchimev

Description

@vchimev

If an existing image in the app folder (outside App_Resources) is replaced during tns run android, the application on the device does not get updated with the new image. However, if the application is restarted, the new image is shown. The same scenario works for iOS.

Version of CLI, runtimes and tns-core-modules packages: 3.1.0.

Steps:

  • tns create appJS && appJS
  • mkdir app/img/ - make a img directory in the app folder
  • add an image to the app/img folder
  • refer the image in the main-page.xml, for example: <Image src="~/img/icon.png" />
  • tne run android
  • replace the image

Expected: the application page refreshes and the new image shows.
Actual: the application page refreshes, but the new image does not show. The old one is still on the page.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions