Deploying our application
Now that we have a fully featured, well-tested, and performant application, it is time to get it into the hands of our users. In this section, we'll briefly go through the steps involved in getting an application into a mobile app store, focusing on the parts of the process that are specific to React Native.
Remove debugging code
No matter where we plan on distributing our application, we will want to ensure that we remove any code that is specific to debugging from our production application build. Some of this, including things such as React PropTypes
, will be done for us in the React
library, but occasionally we will need to do it ourselves.
One example of code that can be removed from the production build is redux-logger
. This tool is very helpful when we're developing an application, but it has no business in a production application. Not only is it superfluous extra weight for our JavaScript asset, but it also impacts performance. In React Native...