Skip to content

Commit

Permalink
format source
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed Jan 10, 2018
1 parent 02e655d commit b8ea2ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions PdfManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class PdfManager {

static loadFile(path: string,
password?: string,): Promise<string> {

invariant(
typeof path === 'string',
'path must be a valid string.',
Expand All @@ -25,5 +26,6 @@ export default class PdfManager {
}

return PdfManagerNative.loadFile(path, password);

}
}
5 changes: 1 addition & 4 deletions PdfPageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@ import {
export default class PdfPageView extends Component {

constructor(props) {

super(props);
this.state = {}

}


render() {

return (
<PdfPageViewCustom {...this.props} />
);

}
}

Expand Down
4 changes: 4 additions & 0 deletions PdfView.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export default class PdfView extends Component {
pageAspectRate: pdfInfo[3] === 0 ? 1 : pdfInfo[2] / pdfInfo[3]
});
if (this.props.onLoadComplete) this.props.onLoadComplete(pdfInfo[1], this.props.path);
})
.catch((error) => {
this.props.onError(error);
});

}
Expand Down Expand Up @@ -277,6 +280,7 @@ export default class PdfView extends Component {
scrollEnabled={this.state.scrollEnabled}
/>
);

};


Expand Down

0 comments on commit b8ea2ab

Please sign in to comment.