# react-native-reader **Repository Path**: ekber/react-native-reader ## Basic Information - **Project Name**: react-native-reader - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-20 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## react-native-reader An iOS/Android lightning fast component that renders any web url into clean native views to display content. 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 in a web browser theres a react version [react-reader-view](https://github.com/A11yWatch/react-reader) ## Installation Instructions ```bash $ npm install react-native-reader ``` ## Example ![Alt Text](https://i.imgur.com/WeROrao.gif) ```typescript import ReaderView from "react-native-reader"; ; ``` - For more help getting started checkout [Example](https://github.com/j-mendez/react-native-reader-example) ## Available Props | prop | default | type | description | | -------------------- | --------- | --------- | --------------------------------------------------------------------------------------------------------------- | | url | "" | string | Required: A valid web url source | | renderLoader | null | Component | Optional: A custom component to render while your content is being loaded | | title | "" | string | Optional: A title to enforce for the content. Helps when a website has multiple h1 tags or (dirty html) | | titleStyle | undefined | object | Optional: Controls the styling of the title component of the reader. | | containerStyle | undefined | object | Optional: Controls the styling of the outer wrapper of the reader. | | loaderContainerStyle | undefined | object | Optional: Controls the styling of the container for the spinner that appears when content is loading | | indicatorProps | undefined | object | Optional: Exposes all [ActivityIndicator](https://facebook.github.io/react-native/docs/activityindicator) props | | onError | null | function | Optional: A function that fires the error if a url is not valid | This package also exposes every prop for react-native-htmlview. For the list of all available props check out [Other Props](https://github.com/jsdf/react-native-htmlview)