DefinitelyTyped/types/react-native-version-check/react-native-version-check-tests.ts
Krishan V 11cd9c65d1
Updated types for v3.4 (#42396)
* Updated types for v3.4

* Changed version to v3.4
2020-02-17 16:52:54 -08:00

32 lines
788 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, storeUrl }) => {})
.catch((error: any) => {});