Skip to content

[android] Image's imageSource property is undefined #6035

@PeterStaev

Description

@PeterStaev

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

If 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.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.1
  • Cross-platform modules: 4.1
  • Runtime(s): 4.1

Please tell us how to recreate the issue in as much detail as possible.

Playground demonstrating the problem: https://play.nativescript.org/?template=play-tsc&id=ZvX1HH

Tap on the button alerts that the imageSource is undefined on android and shows [object Object] under iOS.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions