Use this repeatable audit to find what is making a React Native app large, separate Android and iOS packaging effects, and set release-size budgets that make regressions visible before submission. The workflow covers JavaScript, native dependencies, images, fonts, build artifacts, and the difference between an installable Android package and an iOS archive.
Overview
App size is not one number. A React Native project can produce several relevant measurements: the JavaScript bundle, native binaries, packaged assets, an Android APK or app bundle, and an iOS archive or IPA. Each measurement answers a different question.
- JavaScript bundle size: shows how much application code and dependency code is shipped to the device.
- Native binary size: includes compiled Android or iOS code, React Native itself, Hermes when enabled, and linked native libraries.
- Packaged asset size: includes images, fonts, animations, certificates, and other files copied into the application.
- Download size: reflects what a store or delivery system may provide to a user after packaging and compression.
- Installed size: reflects the space consumed after installation and may differ from download size.
Do not compare a development build with a release build. Development bundles often include debugging support, source maps, unminified code, and tooling that should not be treated as production payload. Measure the same build type, commit, architecture configuration, and packaging format every time.
Android and iOS also require different comparisons. An APK is a directly installable Android package, while an Android App Bundle is a publishing format from which device-specific packages may be generated. An IPA is an iOS application package, generally produced from an archive for distribution. A file-size reduction in one artifact does not automatically predict the same reduction in another.
How to estimate
Start with a baseline table for the current release candidate. Record both the total artifact and its major contributors:
| Measurement | Baseline | Target | Change |
|---|---|---|---|
| Android release artifact | Current measured value | Team limit | Target minus baseline |
| iOS release artifact | Current measured value | Team limit | Target minus baseline |
| JavaScript bundle | Current measured value | Budget | Target minus baseline |
| Images and fonts | Current measured value | Budget | Target minus baseline |
A simple calculation keeps the audit focused:
Remaining budget = size limit − measured size
For a regression, use:
Regression = current release size − previous release size
Then express the change as a percentage when useful:
Percentage change = (current size − previous size) ÷ previous size × 100
Set budgets by component rather than choosing one arbitrary total. For example, keep separate limits for the JavaScript bundle, media assets, fonts, and native dependencies. A total-size budget can remain the release gate, while component budgets help identify the cause.
Measure after each meaningful change. A useful sequence is: remove unused dependencies, rebuild; optimize assets, rebuild; adjust native libraries, rebuild; and finally verify the complete release package. This makes the result attributable instead of turning optimization into a collection of unverified guesses.
Inputs and assumptions
Before changing code, write down the inputs that affect the comparison:
- React Native and Expo versions, including whether the project uses a managed, prebuild, or bare workflow.
- Build mode, such as a signed release build rather than a development build.
- Android packaging format, CPU architecture configuration, and whether the result is a universal APK or a device-specific artifact.
- iOS configuration, signing setup, deployment target, and the exact archive or IPA being measured.
- JavaScript engine and bundling settings used in production.
- Whether source maps, debug symbols, crash-reporting files, or other diagnostic outputs are being counted.
- Image formats, font files, animation files, and files copied by native build scripts.
For JavaScript analysis, use the bundler's output and a bundle analyzer appropriate to the project's React Native or Expo setup. Look for large dependency branches, duplicate packages, locale data, icon libraries, and imports that pull in an entire module when only one small function is needed. Check the dependency graph rather than deleting packages based only on their names; a package may be used by a native module, build script, or platform-specific entry point.
For assets, create an inventory with the file path, type, dimensions, file size, and screen or feature that uses it. Oversized source images are a common source of waste, but blindly lowering quality can damage perceived UI quality. Resize images to their actual display needs, choose an appropriate format, remove unused variants, and avoid bundling marketing or design files that are never rendered.
Fonts deserve their own check. Remove unused families and weights, confirm that the application does not include duplicate copies under different filenames, and verify that every remaining font is required for the supported interface. Also inspect native dependencies: a small JavaScript import can bring in a substantial native library, so compare the cost of a dependency with the feature it provides.
Worked examples
Example 1: Android regression
Assume a team records a previous Android release artifact at 42 MB and the current equivalent artifact at 49 MB. The regression is 7 MB, or approximately 16.7% relative to the previous measurement. The team should not immediately optimize the JavaScript bundle. First, compare dependency lockfiles, generated native files, image inventories, and packaging configuration between the two commits.
If the JavaScript bundle increased by only 0.5 MB but a new native library and several image sets account for the remaining change, the work should focus on those contributors. If the result is a universal APK while the previous result was architecture-specific, the comparison is not valid until the packaging inputs match.
Example 2: Component budgets
Assume a release budget of 35 MB for a measured Android artifact. The team assigns provisional component budgets of 8 MB for JavaScript, 12 MB for native code, 10 MB for images and fonts, and 5 MB for other packaged files. The measured result is 34 MB, so the total has 1 MB of remaining headroom. However, if images and fonts consume 14 MB, that component is already 4 MB over budget even though the total passes. This is an early warning: a future feature could push the release over the limit unless the asset budget is corrected.
Example 3: iOS and Android do not move together
Suppose a dependency adds platform-specific native code. Android grows while the iOS artifact remains nearly unchanged, or the reverse. Treat this as expected evidence to investigate rather than proof that one measurement is wrong. Inspect platform-specific pods, Gradle dependencies, resource copying, architecture settings, and generated build output separately. Maintain one budget sheet with distinct Android and iOS rows.
When to recalculate
Recalculate app-size budgets before every production release and whenever a change can alter the payload. Important triggers include adding or replacing a native module, changing the JavaScript engine, upgrading React Native or Expo, introducing a UI or icon library, adding fonts or media, changing image handling, modifying build configuration, or changing Android architecture and iOS packaging settings.
Use a release checklist with these practical gates:
- Build clean release artifacts for Android and iOS using documented commands and the same configuration as the prior baseline.
- Record artifact sizes, bundle sizes, asset totals, and the commit identifier in a shared table.
- Compare the largest changes with the previous release rather than relying on the total alone.
- Run a bundle-analysis review when JavaScript changes exceed the team threshold.
- Review new native dependencies and confirm that each is still needed.
- Test the optimized build on representative devices to catch missing assets, font failures, broken images, or packaging errors.
- Approve the release only after any budget exception has an owner and a documented reason.
Size optimization should remain part of broader production performance work. Pair this audit with the React Native Performance Optimization audit checklist, and revisit the React Native app size optimization guide when your bundling or release workflow changes. The most reliable result is not a one-time reduction; it is a baseline that makes the next regression visible while there is still time to fix it.