Skip to content

Commit

Permalink
fix [Error: download interrupted] issue (#792)
Browse files Browse the repository at this point in the history
* fix download interrupted error on react native pdf

* Update README.md

* Update README.md
  • Loading branch information
sofianeyagoub authored Dec 23, 2023
1 parent 39bd672 commit fc79a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,4 @@ Example:
```
this.pdf.setPage(42); // Display the answer to the Ultimate Question of Life, the Universe, and Everything
```

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ export default class Pdf extends Component {
if (this._mounted) {
this.setState({progress: received / total});
}
})
.catch(async (error) => {
this._onError(error);
});

this.lastRNBFTask
Expand Down

0 comments on commit fc79a03

Please sign in to comment.