npm.io
1.0.5 • Published 2 years ago

@types/rn-app-upgrade

Licence
MIT
Version
1.0.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/rn-app-upgrade

Summary

This package contains type definitions for rn-app-upgrade (https://github.com/songxiaoliang/react-native-app-upgrade#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rn-app-upgrade.

index.d.ts

import { EmitterSubscription } from "react-native";

/**
 * IOS检测更新 iOS only
 * @param appId   appstore的应用id
 * @param version  本地版本
 */
export function checkUpdate(appId: string, version: string): Promise<{
    code: number;
    msg: string;
    version?: undefined;
}>;
/**
 * 根据appid打开苹果商店 iOS only
 * @param appid
 */
export function openAPPStore(appid: string): void;
/**
 * 升级 android平台 android only
 * @param apkUrl   android传入apk地址
 */
export function upgrade(apkUrl: string): void;
/**
 * android apk下载回调 android only
 * @param callBack
 */
export function addDownListener(callBack: (progress: number) => void): EmitterSubscription;

Additional Details

  • Last updated: Thu, 21 Dec 2023 1951 GMT
  • Dependencies: react-native

Credits

These definitions were written by taoqf.