0.9.4 • Published 11 months ago

react-native-reader v0.9.4

Weekly downloads
99
License
MIT
Repository
github
Last release
11 months ago

react-native-reader

Maintainability j-mendez

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

Installation Instructions

$ npm install react-native-reader

Example

iOS and Android reader being used inside react-native on a bitcoin website

import ReaderView from "react-native-reader";

<ReaderView url="https://www.nytimes.com" title="The Earth is Flat" />;

Available Props

propdefaulttypedescription
url""stringRequired: A web url source
html""stringOptional: A html string to render instead (url is still required to get reading material)
lazyfalsebooleanOptional: Lazily set view for reading. - if set to true make sure to call parseHtml via refs
renderLoadernullComponentOptional: A custom component to render while your content is being loaded
title""stringOptional: A title to enforce for the content. Helps when a website has multiple h1 tags or (dirty html)
titleStyleundefinedobjectOptional: Controls the styling of the title component of the reader.
containerStyleundefinedobjectOptional: Controls the styling of the outer wrapper of the reader.
contentContainerStyleundefinedobjectOptional: Controls the content styling of the scrollview wrapper of the reader.
loaderContainerStyleundefinedobjectOptional: Controls the styling of the container for the spinner that appears when content is loading
indicatorPropsundefinedobjectOptional: Exposes all ActivityIndicator props
onErrornullfunctionOptional: A function that fires the error if a url is not valid
errorPage""stringOptional: html string to render if page errors
configundefinedConfigOptional: configure html element determination

This package also exposes every prop for react-native-htmlview. For the list of all available props check out Other Props

0.9.4

11 months ago

0.9.2

1 year ago

0.9.3

1 year ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.6.11

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.7

3 years ago

0.6.6

3 years ago

0.6.9

3 years ago

0.6.8

3 years ago

0.6.10

3 years ago

0.5.4

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.9

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.5

3 years ago

0.6.1

3 years ago

0.3.9

3 years ago

0.4.5

3 years ago

0.3.6

3 years ago

0.5.3

3 years ago

0.4.4

3 years ago

0.4.7

3 years ago

0.4.6

3 years ago

0.3.7

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.5.2

3 years ago

0.4.3

3 years ago

0.3.4

3 years ago

0.5.1

3 years ago

0.3.3

3 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago