Skip to content

travelgeezer/react-native-android-update

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Key Description Type Default
udpateUrl config url   string      
appKey needed parameters string
version   version name string Automatically read the versionName of build.gradle

Methods

Name Description Type Default
updateAndroid check 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.7%
  • JavaScript 0.3%