rndownloadmanager
v1.0.1
Published
## Getting started
Downloads
3
Readme
react-native-download-manager
Getting started
$ npm install react-native-download-manager --save
Mostly automatic installation
$ react-native link react-native-download-manager
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.jornadatecnologia.downloadManager.RNDownloadManagerPackage;
to the imports at the top of the file - Add
new RNDownloadManagerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-download-manager' project(':react-native-download-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-download-manager/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-download-manager')
Usage
import RNDownloadManager from 'react-native-download-manager';
// TODO: What to do with the module?
RNDownloadManager;