O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Optimizing React Native application size

As we are ready to deploy our app to production, we may get to the point where we need to shrink our application bundle size. There are several techniques we can employ to cut some space off our packages. These may involve some sacrifices to supported devices or asset quality. Naturally, with any space-saving operations there will be consequences; otherwise they would be enabled by default.

This recipe will discuss some techniques to limit production package file size in both iOS and Android React Native applications.

Getting ready

For this recipe we will be using a simple React Native application called TestDeployApp. You also need to have code signing working for iOS and the ability to create apk files. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required