itinance / itinance/react-native-fs
function progress,bytesWritten is small than last time
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
"react": "16.0.0",
"react-native": "0.51.0",
"react-native-fs": "^2.9.2",
when i download a file, in progress function, the bytesWritten is small than last time.
code:
var download = RNFS.downloadFile({
fromUrl:missionobj.url,
toFile:filepath,
progress:this.progress,
progressDivider:1,
});
progress(data){
let jobid = data.jobId;
console.log("bytesWritten:" + data.bytesWritten + "contentLength:"+data.contentLength);
}
log:
index.bundle:79400 bytesWritten:46300715contentLength:120251353
index.bundle:79400 bytesWritten:36683307contentLength:120251353
index.bundle:79400 bytesWritten:48709123contentLength:120251353
index.bundle:79400 bytesWritten:41492011contentLength:120251353
index.bundle:79400 bytesWritten:37879299contentLength:120251353
index.bundle:79400 bytesWritten:40287747contentLength:120251353
index.bundle:79400 bytesWritten:45096451contentLength:120251353
index.bundle:79400 bytesWritten:43892267contentLength:120251353
index.bundle:79400 bytesWritten:45096451contentLength:120251353
index.bundle:79400 bytesWritten:54722051contentLength:120251353
anyone know how to solve this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.