1.2.0 • Published 4 years ago
react-reader-view v1.2.0
react-reader-view
Load any url into clean plain text for reading
Main Feature:
- This provides a Safari reader mode like feel that display's content cleanly (For Reading)
How to use:
- Just pass in a Url into the component and your good to go.
If you need to use this natively theres a react-native version react-native-reader
Installation Instructions
$ npm install react-reader-view
Example
import ReaderView from "react-reader-view";
<ReaderView
url="https://www.nytimes.com"
css={`
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
`}
/>;
- For more help getting started checkout Example
Available Props
prop | default | type | description |
---|---|---|---|
url | "" | string | Required: A valid web url source |
css | "" | string | Optional: A css stylesheet as a string |
renderLoader | "Loading..." | Component | Optional: A custom component to render while your content is being loaded |
iframeProps | null | object | Optional: A valid iframe html property |
onParse | null | function | Optional: A callback function that returns the readability Object |
onError | null | function | Optional: A function that fires the error if a url is not valid |
1.2.0
4 years ago
1.1.18
4 years ago
1.1.16
4 years ago
1.1.15
4 years ago
1.1.14
4 years ago
1.1.17
4 years ago
1.1.13
4 years ago
1.1.12
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.10
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.2
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago