Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
endarova opened this issue May 10, 2019 · 0 comments
Closed

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

endarova opened this issue May 10, 2019 · 0 comments
Assignees
Milestone

Comments

@endarova
Copy link
Contributor

endarova commented May 10, 2019

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants