1.0.1 • Published 3 years ago

rndownloadmanager v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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;