FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Difference in jpg resource syntax on iOS/Android · Issue #1788 · NativeScript/NativeScript · GitHub

Difference in jpg resource syntax on iOS/Android #1788

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL