Skip to content

Progress event response is fluctuating (increase & decrease in percentage) #340

@neemssoni

Description

@neemssoni

Progress event response is fluctuating (increase & decrease in percentage),

Whenever I install the app for the first time, and the file download starts, there are visible decrement and increment in received percentage that is fluctuating.

return RNFetchBlob.config({
     path: path
   })
     .fetch("GET", JSON.parse(dbPathURL))
     .progress({ count : 20 },(received, total) => {
       debugger;
       console.log("progress", received / total);
       let percentage = Math.floor(received/total*100) ;
       store.dispatch(setDownloadPercentage(percentage));
     })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions