An open API service indexing awesome lists of open source software.

https://github.com/enipx/expo-version-checker

Version checker for react-native expo applications 📱
https://github.com/enipx/expo-version-checker

expo react react-native react-native-app

Last synced: 5 months ago
JSON representation

Version checker for react-native expo applications 📱

Awesome Lists containing this project

README

          

# expo-version-checker

This project is built around this package to run smoothly on expo.

## Getting started

- npm

```bash
npm install expo-version-checker
```

- yarn

```bash
yarn add expo-version-checker
```

## Usage

```javascript
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