0.0.15 • Published 8 years ago

react-native-android-update.13 v0.0.15

Weekly downloads
16
License
MIT
Repository
github
Last release
8 years ago

react-native-android-update

This is an android update module.

Install

Install package

npm i react-native-android-update.13 --save

Link the package using react-native link:

react-native link react-native-android-update.13

Usage

Import library

import AndroidUpdateApp from 'react-native-android-update.13';

Check for updates

 componentWillMount() {
    AndroidUpdateApp.updateAndroid(
      'https://you url',
      'you appkey'
    );
  }

Documentation

Params

KeyDescriptionTypeDefault
udpateUrlconfig url  string     
appKeyneeded parametersstring
version  version namestringAutomatically read the versionName of build.gradle

Methods

NameDescriptionTypeDefault
updateAndroidcheck for update

Notice

Data types supported:

{
  "code": 0,
  "info": null,
  "data": {
    "apkVersion": "0.0.13",
    "apkUrl": "http",
    "updateLog": "test",
    "apkSize": "30M",
    "newMd": "sssskjlfae",
    "isConstraint": "false",
    "isUpgrade": "true"
  }
}

Thanks to

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago