Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
forthealllight authored Oct 23, 2018
1 parent 66f4380 commit 54f96f3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,37 @@ Using build tools:
```bash
npm install --save react-read-pdf
```
Using PDFReader in PC:
```
import React from 'react';
import { PDFReader } from 'react-read-pdf';
class PDFShow extends Component{
render(){
return <div style={{overflow:'scroll',height:600}}>
<PDFReader url="http://localhost:3000/test.pdf"/>
</div>
}
}
```
Using MobilePDFReader in mobile terminal devices:
```
import React from 'react';
import { MobilePDFReader } from 'react-read-pdf';
class PDFShow extends Component{
render(){
return <div style={{overflow:'scroll',height:600}}>
<MobilePDFReader url="http://localhost:3000/test.pdf"/>
</div>
}
}
```






Expand Down

0 comments on commit 54f96f3

Please sign in to comment.