it mentioned on docs ‘Change your bundled assets under assetBundlePatterns
’ , but I don’t get it, my english is bad.
so if I have built the app( apk/ ipa ), and then somehow I need to add a new image on my asset bundler, do i have to re-build the ipa/apk again ? or just simply publish ?
thankyou
wodin
November 6, 2019, 9:40am
2
Hi
I think the following posts might help to explain it:
assets in node_modules, whether they are in @expo /vector-icons or react-navigation or any other pkg, are treated exactly the same as assets in your project source code. if you bundle them with assetBundlePatterns then they are included in your standalone app directly. if you do not, then they are requested over the network at runtime.
Thanks for this info. So, if I change that to be along the lines of:
"assetBundlePatterns": [
"assets/audio/*"
]
In that instance, only the audio files would be included in the build(in the APK itself), but the image files would not be included. The image files instead would be hosted on the Expo CDN and downloaded/cached on first run of the application to be stored on local device memory for next use, reducing the size of the initial APK.
Did I understand that correctly?
Thanks again …
Basically, assetBundlePatterns
controls what assets are included in the app itself. Other assets will be downloaded.
1 Like
system
Closed
November 26, 2019, 9:41am
3
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.