Having trouble getting assets to not be bundled

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): all
  3. Add the appropriate “Tag” based on what Expo library you have a question on: Images, Assets

I’m having trouble getting my images to not be bundled in the app. My application has almost 10,000 images, which makes the app very large when they’re all bundled together. In fact the bundle is too big to upload to the Google Play Store as its over the 150mb limit. Is there a trick to loading the assets through expo’s cdn as explained in the documentation. Here’s an example of how my code is set up.

My assetBundlePatterns in my app.json is bundling all assets in the assets directory. This set of images is in a different directory called appData. Inside app data there is a js file and a directory of images. See below.

Directory Structure

  • assets/
    – images
    — splash.png

  • appData/
    – images.js
    – imageFiles/
    — image1.jpg
    — image2.jpg

The images.js file is set up like this

module.exports = {
  "key1": {
    base: require('./imageFiles/image1.jpg'),
  "key2": {
    base: require('./imageFiles/image2.jpg'),

Then throughout the application image tags are constructed like this

<Image source{ImageFiles[key1].base} />

Any idea what might be causing the images to be bundled> Thank you for your help

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