This release includes a few bug fixes as well as a really cool feature contribution from @dbasedow. It is now available on NPM and can be installed via npm i --save react-native-code-push@latest
.
New Features
- Restarts can be disallowed during critical end user workflows The Javascript API exposes a new
disallowRestart
method which allows a component to ensure that no programmatic update restarts can occur while it is mounted (resulting in a "quick flash" that some users may think is a crash). This can help prevent end user interruptions during periods where it would be unacceptable (e.g. an on boarding process), but without preventing the app to discover and download available updates as soon as possible (via a call toallowRestart
). Check out the docs for more details.
Bug Fixes
- Our podspec includes a new
NoZip
subspec to allow apps that already includeSSZipArchive
to link with CodePush, without receiving duplicate symbol errors - A bug was fixed with install metrics reporting when an update is successfully installed after a previous update had been rolled back.
- Our
package.json
file now indicates where our*.d.ts
file is located, so that supporting editors (e.g. VS Code) can provide auto-completion support for our API out-of-the-box.