# @types/rn-app-upgrade

> TypeScript definitions for rn-app-upgrade

Latest version **1.0.5** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/rn-app-upgrade
pnpm add @types/rn-app-upgrade
yarn add @types/rn-app-upgrade
bun add @types/rn-app-upgrade
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-12-21 |
| First published | 2019-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/rn-app-upgrade
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rn-app-upgrade
- npm.io page: https://npm.io/package/@types/rn-app-upgrade

## Dependencies (1)

- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 1.0.5 (latest) — 2023-12-21
- 1.0.4 (ts4.5) — 2023-11-07
- 1.0.1 (ts3.0) — 2020-05-15
- 1.0.0 (ts2.8) — 2019-12-02
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rn-app-upgrade/index.d.ts)
````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 19:06:51 GMT
 * Dependencies: [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [taoqf](https://github.com/taoqf).

---
_Source: https://npm.io/package/@types/rn-app-upgrade · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
