Component to use bundled images by filename from JavaScript

I’ve created a component to use bundled images by filename from JavaScript.

Now you can write something like:

<Each Items="{files}">
    <Image>
        <JSBundleImageSource File="{}" />
    </Image>
</Each>

From a structure like this:

var files = ['Assets/Oslo.jpg','Assets/Paris.jpg'];

Just add JSBundleImageSource.uno to your project, or reference it from your unoproj file.

https://github.com/bolav/fuse-jsbundleimagesource

Thanks! But now, you can also just do this (as of 0.11):

<JavaScript>
    module.exports.file = "Assets/Oslo.jpg";
</JavaScript>

<Image File="{file}" />

:slight_smile:

Uuu, finally :slight_smile: