Skip to content

Commit d5a8831

Browse files
authored
Merge pull request #854 from ouabing/bug/resumable
Fix error when resume download on iOS
2 parents a3e5a82 + f885f97 commit d5a8831

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FS.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ var RNFS = {
513513

514514
if (options.resumable) {
515515
subscriptions.push(RNFS_NativeEventEmitter.addListener('DownloadResumable', (res) => {
516-
if (res.jobId === joibId) options.resumable(res);
516+
if (res.jobId === jobId) options.resumable(res);
517517
}));
518518
}
519519

RNFSManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ + (BOOL)requiresMainQueueSetup
545545
if (hasResumableCallback) {
546546
params.resumableCallback = ^() {
547547
if (self.bridge != nil)
548-
[self sendEventWithName:@"DownloadResumable" body:nil];
548+
[self sendEventWithName:@"DownloadResumable" body:@{@"jobId": jobId}];
549549
};
550550
}
551551

0 commit comments

Comments
 (0)