@stryberventures/stryber-rn-core-components-version-updater
v0.0.5
Published
## Description ##
Downloads
5
Keywords
Readme
Stryber React Native Version Updater
Description
Module which can compare current app version with the latest one. If the newer version exists and is configured with force update, user will see a modal window which will navigate him to Apple/Play Store to update the app. Versions for different platforms might be different.
Installation
Install the module and dependencies
npm i @stryberventures/stryber-rn-core-components-version-updater [email protected] --save
How it works
Version list and latest version configuration are stored on the server side. To allow the server to compare current app version with server configuration we should send information about device platform and current app version in request headers in each request. If server response status is 426, it means that newer version exists and app should be force updated to this version. In this case we should show modal window which will navigate user to Apple/Play Store.