assetBundlePatterns including files, files are still only accessible w/ internet connection

SDK Version: 40.0.1
Expo Asset Version: tried 8.2.1 and 8.3.2
Platforms: Android and iOS (web not tested)

Hi, I include everything within my asset folder in assetBundlePatterns like this:
"assetBundlePatterns": ["assets/**"]
I confirmed that including the files works by doing a build with that pattern and another build any asset bundling and comparing the APK file sizes, ~50mb vs ~100mb so that works definitely.

The problem is, when I try to access the files on a device/emulator without internet, it simply doesnt’t work. The images are not shown. As soon as I turn on internet the images show immediately. This is the way I access the files in the code:

const bgImgUri = Asset.fromModule(require('../assets/images/myBgImg.png')).uri;
<ScreenLayout backgroundImg={bgImgUri}>

I could not find any help regarding this. Offline asset loading seem to have caused troubles for some years in general now tho.

Anybody got an idea? Would also take a workaround/different asset library.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.