filmov
tv
Implementing CodePush in React Native | React Native Code Push | #React Native |

Показать описание
What is CodePush?
CodePush is a cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
How does CodePush work in ReactNative?
A React Native app consists of JavaScript files and any accompanying images, which the packager bundles and distributes as part of a platform-specific binary (i.e., an .ipa or .apk file).
Once the app is released, updating the JavaScript code (e.g., fixing bugs or adding new features) or image assets, requires recompilation and redistribution of the entire binary, which includes, of course, any review time associated with the store(s) on which it is published.
The CodePush plugin helps get product enhancements to end users instantly, by keeping your JavaScript and images in sync with updates you release to the CodePush server. This way, your app gets the benefits of an offline mobile experience, as well as the “web-like” agility of side-loading updates as soon as they become available. It’s a win-win!
The operation is based on wrapping our app in a CodePush HOC (higher-order component) that is responsible for checking if there are new updates to our code in CodePush and reloading the app with the new changes.
React Native CodePush uses its own server to store a copy of each CodePush deployment and a control version in case a rollback is needed; this can be done almost instantly. All of this is managed through a user-friendly control panel provided by Microsoft, which not only allows you to control CodePush deployments but also conventional ones.
It also allows simultaneous testing of versions on a wide variety of devices and platforms.
The library has a wide variety of configuration parameters that, among other things, allow you to choose when to check for and download new versions of React Native CodePush for the app and also give you the ability to use events to determine when each of these processes has been completed. For example, you can notify the end-user that a new version will be installed the next time the app is restarted.
Appcenter
npm link
CodePush is a cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
How does CodePush work in ReactNative?
A React Native app consists of JavaScript files and any accompanying images, which the packager bundles and distributes as part of a platform-specific binary (i.e., an .ipa or .apk file).
Once the app is released, updating the JavaScript code (e.g., fixing bugs or adding new features) or image assets, requires recompilation and redistribution of the entire binary, which includes, of course, any review time associated with the store(s) on which it is published.
The CodePush plugin helps get product enhancements to end users instantly, by keeping your JavaScript and images in sync with updates you release to the CodePush server. This way, your app gets the benefits of an offline mobile experience, as well as the “web-like” agility of side-loading updates as soon as they become available. It’s a win-win!
The operation is based on wrapping our app in a CodePush HOC (higher-order component) that is responsible for checking if there are new updates to our code in CodePush and reloading the app with the new changes.
React Native CodePush uses its own server to store a copy of each CodePush deployment and a control version in case a rollback is needed; this can be done almost instantly. All of this is managed through a user-friendly control panel provided by Microsoft, which not only allows you to control CodePush deployments but also conventional ones.
It also allows simultaneous testing of versions on a wide variety of devices and platforms.
The library has a wide variety of configuration parameters that, among other things, allow you to choose when to check for and download new versions of React Native CodePush for the app and also give you the ability to use events to determine when each of these processes has been completed. For example, you can notify the end-user that a new version will be installed the next time the app is restarted.
Appcenter
npm link
Комментарии