Skip to content

Image replacement is not respected during tns run with hmr #4607

Closed
@endarova

Description

@endarova
  • CLI: v5.3

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

Steps:

  1. tns create appJS --js
  2. mkdir app/img/ - make a img directory in the app folder
  3. add an image to the app/img folder
  4. refer the image in the main-page.xml, for example: <Image src="~/img/test.png" />
  5. run android/ios --hmr
  6. replace the image
    Expected: the application page refreshes and the new image shows.
    Actual: cli states test.png is synced, 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

Relationships

None yet

Development

No branches or pull requests

Issue actions