You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
# react-native-background-download
2
+
# react-native-background-downloader
3
3
4
4
A library for React-Native to help you download large files on iOS and Android both in the foreground and most importantly in the background.
5
5
@@ -12,7 +12,7 @@ On Android we are simulating this process with a separate service dedicated to j
12
12
13
13
The real challenge using this method is making sure the app's UI if always up-to-date with the downloads that are happening in another process because your app might startup from scratch while the downloads are still running.
14
14
15
-
`react-native-background-download` gives you an easy API to both downloading large files and re-attaching to those downloads once your app launches again.
15
+
`react-native-background-downloader` gives you an easy API to both downloading large files and re-attaching to those downloads once your app launches again.
16
16
17
17
## ToC
18
18
@@ -22,48 +22,48 @@ The real challenge using this method is making sure the app's UI if always up-to
`$ react-native link react-native-background-download`
29
+
`$ react-native link react-native-background-downloader`
30
30
31
31
### Manual installation
32
32
33
33
34
34
#### iOS
35
35
36
36
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
37
-
2. Go to `node_modules` ➜ `react-native-background-download` and add `RNBackgroundDownload.xcodeproj`
38
-
3. In XCode, in the project navigator, select your project. Add `libRNBackgroundDownload.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
37
+
2. Go to `node_modules` ➜ `react-native-background-downloader` and add `RNBackgroundDownloader.xcodeproj`
38
+
3. In XCode, in the project navigator, select your project. Add `libRNBackgroundDownloader.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
39
39
4. Run your project (`Cmd+R`)
40
40
41
41
#### Android
42
42
43
43
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
44
-
- Add `import com.eko.RNBackgroundDownloadPackage;` to the imports at the top of the file
45
-
- Add `new RNBackgroundDownloadPackage()` to the list returned by the `getPackages()` method
44
+
- Add `import com.eko.RNBackgroundDownloaderPackage;` to the imports at the top of the file
45
+
- Add `new RNBackgroundDownloaderPackage()` to the list returned by the `getPackages()` method
46
46
2. Append the following lines to `android/settings.gradle`:
47
47
```
48
-
include ':react-native-background-download'
49
-
project(':react-native-background-download').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-download/android')
48
+
include ':react-native-background-downloader'
49
+
project(':react-native-background-downloader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-downloader/android')
50
50
```
51
51
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
0 commit comments