diff --git a/FS.common.js b/FS.common.js index 7d59bec9..62b7ba73 100755 --- a/FS.common.js +++ b/FS.common.js @@ -513,7 +513,7 @@ var RNFS = { if (options.resumable) { subscriptions.push(RNFS_NativeEventEmitter.addListener('DownloadResumable', (res) => { - if (res.jobId === joibId) options.resumable(res); + if (res.jobId === jobId) options.resumable(res); })); } diff --git a/RNFSManager.m b/RNFSManager.m index b7485aea..c443d20a 100755 --- a/RNFSManager.m +++ b/RNFSManager.m @@ -545,7 +545,7 @@ + (BOOL)requiresMainQueueSetup if (hasResumableCallback) { params.resumableCallback = ^() { if (self.bridge != nil) - [self sendEventWithName:@"DownloadResumable" body:nil]; + [self sendEventWithName:@"DownloadResumable" body:@{@"jobId": jobId}]; }; }