Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

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
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
124
increased by0.81%

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 react-native-apk-installer-n@1

$ 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

Last updated on 12 Oct 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc