Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit 3289391

Browse files
author
Elad Gil
committed
fixed typo in pauseTask
1 parent d2d6957 commit 3289391

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

android/src/main/java/com/eko/RNBackgroundDownloadModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void download(ReadableMap options) {
168168
}
169169

170170
@ReactMethod
171-
public void puaseTask(String identifier) {
171+
public void pauseTask(String identifier) {
172172
Integer requestId = idToRequestId.get(identifier);
173173
if (requestId != null) {
174174
fetch.pause(requestId);

ios/RNBackgroundDownload.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
124124
[task resume];
125125
}
126126

127-
RCT_EXPORT_METHOD(puaseTask: (NSString *)identifier) {
127+
RCT_EXPORT_METHOD(pauseTask: (NSString *)identifier) {
128128
NSURLSessionDownloadTask *task = idToTaskMap[identifier];
129129
if (task != nil && task.state == NSURLSessionTaskStateRunning) {
130130
[task suspend];

lib/downloadTask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class DownloadTask {
6262

6363
pause() {
6464
this.state = 'PAUSED';
65-
RNBackgroundDownload.puaseTask(this.id);
65+
RNBackgroundDownload.pauseTask(this.id);
6666
}
6767

6868
resume() {

0 commit comments

Comments
 (0)