react-native-apk-installer-n
Advanced tools
Weekly downloads
Readme
Support AndroidX and Android other version
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
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)
}
});
FAQs
A react-native library to install APK on Android
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.
We found that react-native-apk-installer-n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.