question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

assetBundlePatterns not working correctly on exp build

See original GitHub issue

Environment

Environment: OS: macOS High Sierra 10.13.3 Node: 9.2.1 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed) expo: ^25.0.0 => 25.0.0 react: 16.2.0 => 16.2.0 react-native: 0.52.0 => 0.52.0

Diagnostics report: https://exp-xde-diagnostics.s3.amazonaws.com/spezzino-522f56fd-d26d-465e-804c-ab172febe36e.tar.gz

standalone (via exp build)

Steps to Reproduce

  1. add assets to the app
  2. add assetBundlePatterns to app.json

"assetBundlePatterns": [ "src/assets/images/**" ] 3. exp build:android 4. Install apk via adb 5. turn internet off on the phone 6. launch the app

Expected Behavior

All assets are loaded offline

Actual Behavior

Only some assets are loaded. After first internet connection, all missing assets are loaded

Additional info

After inspecting the generated apk, I did see all the bundled assets loaded there, but maybe the Image fetcher does not find them.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ImBeCiliCcommented, Aug 21, 2018

Is it possible to bundle html files for the build android webview? Because the syntax should look like: {uri: ‘file:///android_asset/some.html’}. Is it possible to bundle these files into android to access it faster? Thanks @janicduplessis

0reactions
janicduplessiscommented, May 5, 2018

This should be fixed with the latest sdk release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you reference images bundled via ... - Expo Forums
We've used assetBundlePatterns in app.json to bundle up a background image for a landing screen. After doing an exp build: ios we changed ......
Read more >
Splash screen and icon falls back to the default when building ...
I have been faced with this issue and it is very frustrating. Splash screen and icon falls back to the default when building...
Read more >
Expo iOS app isn't rendering offline assets on test ... - Reddit
I'm publishing an app for the company I work for and it all works fine ... SDK 41 and for assetBundlePatterns on the...
Read more >
How To Create A Mobile App In Expo And Firebase (For iOS ...
In this article, based on my experience with creating a GPS and navigation application, I will show you how to create a mobile...
Read more >
expo-updates - npm
Start using expo-updates in your project by running `npm i expo-updates`. ... In Xcode, under the Build Phases tab of your main project, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found