assetBundlePatterns not working correctly on exp build
See original GitHub issueEnvironment
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
- add assets to the app
- 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:
- Created 6 years ago
- Comments:7
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
This should be fixed with the latest sdk release.