mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
778 B
TypeScript
32 lines
778 B
TypeScript
import VersionCheck from "react-native-version-check";
|
|
|
|
VersionCheck.getCountry()
|
|
.then((country: string) => {})
|
|
.catch((error: any) => {});
|
|
|
|
VersionCheck.getPackageName();
|
|
|
|
VersionCheck.getCurrentBuildNumber();
|
|
|
|
VersionCheck.getStoreUrl()
|
|
.then((storeUrl: string) => {})
|
|
.catch((error: any) => {});
|
|
|
|
VersionCheck.getAppStoreUrl()
|
|
.then((storeUrl: string) => {})
|
|
.catch((error: any) => {});
|
|
|
|
VersionCheck.getPlayStoreUrl()
|
|
.then((storeUrl: string) => {})
|
|
.catch((error: any) => {});
|
|
|
|
VersionCheck.getCurrentVersion();
|
|
|
|
VersionCheck.getLatestVersion()
|
|
.then((latestVersion: string) => {})
|
|
.catch((error: any) => {});
|
|
|
|
VersionCheck.needUpdate()
|
|
.then(({ isNeeded, currentVersion, latestVersion }) => {})
|
|
.catch((error: any) => {});
|