react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Fix progressCallback not get called when call downloadFile on iOS platform

Open zhima opened this issue 3 years ago • 1 comments

On iOS platform, when I call downloadFile method without setting the begin callback param, the progress callback not get called anyway.

In Downloader.m file, progressCallback get called only when statusCode equal to 200, and statusCode is assigned value only when there is beginCallback.

So I put the statusCode's assigning before beginCallback's determination, so that statusCode will be assigned value without beginCallback.

zhima avatar Mar 24 '22 09:03 zhima

Thanks.

siisee11 avatar Nov 13 '23 06:11 siisee11