assetBundlePatterns Not Loading Assets During Offline Access


#1

Hi

I’ve read a lot of answers over here but none of them were helpful.

This is my app.json:

{
  "expo": {
    "sdkVersion": "25.0.0",
    "name": "",
    "version": "1.0.0",
    "slug": "",
    "orientation":"portrait",
    "icon":"assets/img/appIcon.png",
    "ios": {
      "bundleIdentifier": "",
      "buildNumber":"1.1"
    },
    "android": {
      "package": ""
    },

    "assetBundlePatterns":[
      "assets/fonts/*",
      "assets/img/**/*"
    ]
  }
}

After creating IPA and APK with exp build:ios and exp build:android, when I unzip them, I see the assets are included. But when I’m trying to load the app offline, the images are not loaded. They’re loading only when I’m connected to the internet.

Is there anything I’m missing from the configuration? Or is it a bug with the Expo itself?


#2

I think this may be the same as https://github.com/expo/expo/issues/1502. Can you weigh in there?


closed #3

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