How to Deploy React Native Apps With Microsoft CodePush
CodePush is Microsoft's App Center cloud service that enables React Native developers to deploy mobile app updates directly to their users' devices.
CodePush#
CodePush is Microsoft's App Center cloud service that enables Apache Cordova and React Native developers to deploy mobile app updates directly to their users' devices.
Installation#
To use CodePush, we need to add the app to AppCenter.ms. Create a free account on the site to begin.
Add app#
To add a new app, click Add new at the top right corner of the dashboard:

Select the following options:
App name: Give the app a name
Release Type: Select a type eg alpha, beta
OS: Android
Platform: React Native

Great - we've added our app!
App Center has an SDK which provides additional capabilities like logging, error monitoring and analytics. Feel free to explore these, though we will be using Sentry for these and will only be integrating CodePush, so adding this SDK is not required.
CLI#
App Center provides a CLI. It needs to be installed once, and then we can use it for any of our React Native apps.
xxxxxxxxxx
npm install -g appcenter-cli
Then log in to the App Center.
xxxxxxxxxx
appcenter login
This will open a window in the browser. After authenticating, we will get a code as below:

Enter the code in the terminal when prompted:
xxxxxxxxxx
Amits-MacBook-Pro:newline-guide-to-react-native-for-javascript-developers $ appcenter login
Opening your browser...
? Visit https://appcenter.ms/cli-login?hostname=Amits-MacBook-Pro.local and enter the code:
? Access code from browser: e8d9a0e--------------------------25fec
Logged in as amitm30
Amits-MacBook-Pro:newline-guide-to-react-native-for-javascript-developers Rezinka$
Integrate with app#
Install react-native-code-push
using yarn or npm:
xxxxxxxxxx
yarn add --save react-native-code-push