DefinitelyTyped/types/react-native-version-check/react-native-version-check-tests.ts
Vincent DELACOURT 369612c7c8 Added react-native-version-check (#35769)
* Added react-native-version-check

* config problem (forget add extension to test file)
2019-05-28 13:44:22 -07:00

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) => {});