React Native lets one team ship to iOS and Android, but app size is still measured per platform, and the images you bundle count on both. A typical project accumulates assets over time: onboarding illustrations, empty states, icons exported at multiple scales, and a few large backgrounds that looked fine in development. Because the JavaScript bundle gets most of the attention, images are easy to overlook, and they are often the larger part of what you control. This guide explains how React Native handles images, where size creeps in and a practical order of work to reduce it.
Platform specifics live elsewhere
This article focuses on what is specific to React Native. For native details, see our guides to reducing iOS app size and Android APK and AAB size, which cover asset catalogs, app thinning, App Bundles and resource shrinking in depth.
How React Native bundles images
When you reference a local image with require, the Metro bundler registers it as an asset and copies it into the native build. If you provide files with scale suffixes, such as logo.png, logo@2x.png and logo@3x.png, the runtime picks the one that matches the device pixel ratio. On iOS the files end up in the app bundle. On Android they are placed in density-specific drawable folders during a release build.
Two consequences follow. First, every scale variant you add is packaged, so providing three versions of every image triples the cost for that asset compared with a single file. Second, the images are compiled into the app itself, so they count toward the download and install size from day one, regardless of whether a user ever visits the screen that uses them.
Step 1: Measure the real builds
Do not judge size from the project folder. Measure what users download.
- For iOS, archive the app and export with the App Thinning Size Report, which shows the size for each device variant.
- For Android, build an Android App Bundle and open the output in Android Studio's APK Analyzer, or compare the sizes of the per-device APKs.
- To see how large the JavaScript bundle is versus assets, use a bundle visualizer tool for Metro, and compare it with the asset totals in each platform build.
Record the baseline for both platforms. You will often find that images matter more on one platform than the other, depending on which densities you ship.
Step 2: Provide only the scales you need
Modern phones mostly use 2x and 3x pixel ratios. You rarely need a 1x file for new devices. A reasonable approach is to provide the 2x and 3x versions, or even only the 3x version for artwork that scales down cleanly, and let React Native scale as needed. Check how the result looks on a lower-density device or emulator before you commit to that, since scaling down is usually fine but scaling up is not.
Design each image around its real display size. If a logo is shown at 120 points wide, the 3x file should be 360 pixels wide. Exporting at 1500 pixels wide because the design file was large wastes space and memory, and React Native will decode the full image into memory when it renders.
Step 3: Compress the sources
Once the images are the right size, compress them before they enter the repository.
- Run lossless optimization on every PNG. It is risk free and removes metadata.
- Use lossy PNG quantization for flat illustrations and interface graphics, and review gradients for banding.
- Re-encode photographic JPEGs with an optimized encoder.
- Keep the original design exports outside the app repository so they are never accidentally bundled.
TinyPixels handles all of this locally on macOS and Windows. Point its watch folder at your assets directory and each new image is compressed as soon as it appears, without a Metro plugin or a build step. Nothing leaves your machine, and Pro is a one-time purchase. Our guide on compressing React Native assets covers a setup in more detail.
Step 4: Use WebP where it fits
WebP is usually smaller than PNG or JPEG at similar quality. Android has supported it for years, and recent iOS versions can decode it natively, so it is a practical option for many projects today. Check the minimum OS versions you support and test on real devices before converting a whole library, since support and rendering details can vary by version and by image component. Keep lossless PNG for assets where exact pixels matter, and use vector formats for icons.
Step 5: Move large and optional images off the bundle
Remote images, loaded by URL, do not count toward the download. They are a good fit for content that changes often, such as product catalogs, feeds or user-generated images, and for large images that only some users see. Use an image component with caching, so the second view is fast, and consider placeholders so the layout does not jump. Combine this with sensible server-side sizes so you are not trading a large bundle for large network transfers.
The trade-off is that remote images need a connection and loading states. Keep critical images in the bundle, like the logo and the first screen, and load the rest remotely.
Step 6: Expo specifics
If you use Expo, there are helpful tools. Expo provides an asset optimization command that compresses images in your project, which can be a quick first pass. Be aware of how assets are delivered: assets bundled with the build count toward the binary size, while assets delivered through over-the-air updates are downloaded after install and count toward data use rather than store size. Check the Expo documentation for your SDK version, because asset handling options change between releases.
Step 7: Icons and splash screens
App icons and splash images are required at specific sizes, and they are easy to over-provide. Use the exact sizes the platform asks for, avoid shipping large unused variants and compress PNGs without altering dimensions. Store listing screenshots do not belong in the app bundle at all.
Step 8: Remove unused assets
Search the codebase for each image name and delete files that are never referenced. Teams that redesign screens often leave the old artwork behind. Because Metro bundles whatever you require, an import in a dead file can still pull an asset in, so also remove unused screens and components. Check for duplicates that differ only by filename.
Step 9: Verify visually
After each change, run the app on at least one low-density and one high-density device or simulator. Compare screens with the original at actual size. Look for banding in gradients, halos around transparent edges and blurry upscaling. Fix problems by adjusting settings for that image rather than abandoning optimization altogether.
Workflow summary
- Measure the iOS and Android builds.
- Delete unused assets and duplicates.
- Right-size images to their display size, per scale.
- Provide only the scales you need.
- Compress sources, lossless first, lossy where invisible.
- Convert suitable images to WebP after testing on target OS versions.
- Move big optional images to remote loading with caching.
- Automate compression with a watch folder.
- Re-measure both platforms and record the result.
Common mistakes
- Shipping 1x, 2x and 3x variants of everything.
- Using full-resolution design exports as bundled assets.
- Forgetting that bundled images count even if a screen is rarely visited.
- Converting to WebP without testing on the oldest OS version you support.
- Loading huge remote images without server-side resizing.
- Optimizing the JavaScript bundle while ignoring assets.
Animated content, Lottie and video
Animated assets can dwarf static images. A Lottie animation is a JSON file whose size grows with complexity and with any images it embeds, and a GIF is almost always much larger than an equivalent short video or animated WebP. If you use animations, check the size of each file, simplify the compositions where you can and avoid embedding raster images inside vector animations. For video, compress aggressively and consider streaming from a server instead of bundling, since a single promotional video can be larger than all your images combined.
Fonts and other static resources
Image work gets the attention, but fonts add weight too. Each font family and weight is a separate file, and icon fonts that include thousands of glyphs ship them all even if you use ten. Limit the weights you bundle, subset fonts where your tooling supports it and consider replacing icon fonts with a smaller set of vector icons. Audit other static resources, such as bundled JSON data files, in the same pass.
A size budget for the team
Treat download size like a performance budget. Choose a target for each platform, print the numbers from your CI builds and make a rise above the threshold visible in code review. Without a budget, size creeps up one innocent pull request at a time. With one, the person adding a three-megabyte illustration finds out immediately, and the fix, resizing and compressing it, takes minutes while the context is fresh.
Share the budget with designers too. When design exports follow the sizes in a short asset guide, such as maximum pixel dimensions per slot and preferred formats, most oversized images never reach the repository at all.
Memory and performance benefits
Right-sizing images helps beyond download size. React Native decodes bitmaps into memory when it renders them, and memory use depends on pixel dimensions, not on file size. A heavily compressed but 4000 pixel wide image still occupies a large bitmap in memory, which can cause slow scrolling or crashes on low-end Android phones. Shipping images at their display size reduces memory pressure, speeds up list rendering and improves startup. When you profile a slow screen, check image dimensions before you look for exotic causes.
For lists with many thumbnails, request appropriately sized images from your server, so each cell decodes a small bitmap. The same principle applies to bundled assets, where a dedicated small version for thumbnails beats scaling down a large one at render time.
As a last check, ask a teammate to build the release version on a clean machine and compare sizes with your notes. Differences between your environment and a clean build often reveal assets that were only present locally, or stale generated files that inflate the output.
Conclusion
React Native app size is a shared problem across two platforms, and images are the part you can change fastest. Measure each platform, trim scales and unused files, right-size and compress your sources, use WebP where it is safe and keep large optional images remote. Put a local watch folder in front of your assets directory, and the savings last as the app grows.
Frequently asked questions
How do images affect React Native app size?
Images you require are bundled into the iOS and Android builds, and every scale variant such as @2x and @3x is packaged. They count toward download and install size.
Do I need 1x, 2x and 3x images in React Native?
Rarely. Modern phones mostly use 2x and 3x, so many projects provide only those or just 3x. Test on lower-density devices before committing.
Is WebP safe to use in React Native?
Often, yes. Android supports it widely and recent iOS versions decode it natively. Test on the oldest OS version you support.
Should I load images remotely instead of bundling them?
For large, optional or frequently changing images, yes, with caching and placeholders. Keep critical images like the logo and first screen in the bundle.
How do I check how big my React Native app really is?
Use the App Thinning Size Report on iOS and the Android App Bundle with APK Analyzer on Android, since project folder size is not what users download.
Can I automate image compression for React Native?
Yes. A desktop tool with a watch folder, such as TinyPixels, compresses new images locally as they are added, with no Metro plugin required.