Skip to content

Bundled images assets in appxs aren't found #2452

@jonthysell

Description

@jonthysell

Right now, we hardcode ReactUWP to expect packaged bundles to be in ms-appx://Bundle/{filename}.bundle

The developer passes in {filename}.

So if you run react-native bundle --platform uwp--entry-file index.js --bundle-output Bundle\index.uwp.bundle --assets-dest Bundle to get:

Bundle\
- index.uwp.bundle
  assets\
    - asset1.png
    - asset2.png

However, when loading images, we translate the path file://assets/asset1.png to ms-appx:///assets/asset1.png

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions