Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

expo-version-checker

enipx389MIT1.0.2

Version checker for expo applications

version checker, expo, react-native, android, ios, app store version, playstore store version, version check, version

readme

expo-version-checker

This project is built around this package https://github.com/kimxogus/react-native-version-check to run smoothly on expo.

Getting started

  • npm
npm install expo-version-checker
  • yarn
yarn add expo-version-checker

Usage

import VersionCheck from 'expo-version-checker';

VersionCheck.getLatestVersion()
 .then(latestVersion => {
  console.log(latestVersion);
 });

VersionCheck.needUpdate()
.then((res) => {
  console.log(res);    // { currentVersion: 1.0.2, isNeeded: true, latestVersion: 1.0.4, storeUrl: IOS | Android Url }
  if (res.isNeeded) {
 // you can do whatever you want here open
 }
});

Full doc available at https://github.com/kimxogus/react-native-version-check