Dynamic importing of images

I have a Json file that consists of a list of items with one of the properties being the image path.

info.json: [ { … “Path”: “images/01.jpg”, … }, { … “Path”: “images/02.jpg”, … },
… ]

I would like to import the images using the relative paths obtained from the json, but ‘import BundleFile()’ can only receive constant value for the filename. May anyone give me a suggestion for achieving, please? Thanks.

Hi!

As mobile apps are bundles that are installed on the phone, Fuse has to know all the files that you want to bundle in your app up front. There is no way to place files in the file system on the phone without putting the files in the bundle first. This means that you cannot dynamically choose what files to import based on data that is only known at runtime.

Ok, thanks for explanation.