Skip to content

Difference in jpg resource syntax on iOS/Android #1788

@tjvantoll

Description

@tjvantoll

In order to use a .jpg file that lives in App_Resources on iOS I must use res://my_file.jpg, whereas on Android I need to use res://my_file (no extension). This forces me to needlessly fork my code to use an image with the same name.

You can find a live example in the Groceries repo’s angular branch. See https://github.com/NativeScript/sample-Groceries/blob/5f3c416567ab77b605c90775708a4ae5fcb758e8/app/platform.android.css#L2 and https://github.com/NativeScript/sample-Groceries/blob/5f3c416567ab77b605c90775708a4ae5fcb758e8/app/platform.ios.css#L2.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions