Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

react-native-apk-installer-n

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Issues
File Explorer

Advanced tools

react-native-apk-installer-n

A react-native library to install APK on Android

    2.1.2latest

Version published
Maintainers
1
Yearly downloads
14,735
increased by189.83%

Weekly downloads

Readme

Source

react-native-apk-installer-n

Support AndroidX and Android other version

Getting started

AndroidX
$ yarn add react-native-apk-installer-n

Other version
$ yarn add [email protected]

$ react-native link react-native-apk-installer-n

Usage

You can use react-native-fs to download the apk file:

import RNFS from 'react-native-fs' import RNApkInstallerN from 'react-native-apk-installer-n'; const filePath = RNFS.DocumentDirectoryPath + '/com.domain.example.apk'; const download = RNFS.downloadFile({ fromUrl: 'apk file download url', toFile: filePath, progress: res => { console.log((res.bytesWritten / res.contentLength).toFixed(2)); }, progressDivider: 1 }); download.promise.then(result => { if(result.statusCode == 200){ RNApkInstallerN.install(filePath) } });

Keywords

FAQs

What is react-native-apk-installer-n?

A react-native library to install APK on Android

Is react-native-apk-installer-n popular?

The npm package react-native-apk-installer-n receives a total of 122 weekly downloads. As such, react-native-apk-installer-n popularity was classified as not popular.

Is react-native-apk-installer-n well maintained?

We found that react-native-apk-installer-n demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 12 Oct 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc