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.
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. ...