# react-native-htmlviewer

> HTML to native component.

Latest version **1.0.6** (published 2021-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-htmlviewer
pnpm add react-native-htmlviewer
yarn add react-native-htmlviewer
bun add react-native-htmlviewer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-07-05 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Tiago Hellebrandt |
| Maintainers | tiagohellebrandt, aroldo_goulart |
| Keywords | react-native, react-component, react-native-component, react, react native, mobile, ios, android, html, converter, html to component, htmlview, render html, html react native, react native html, react-native-htmlview, react-native html viewer |

## Links

- npm: https://www.npmjs.com/package/react-native-htmlviewer
- Repository: https://github.com/TiagoHellebrandt/react-native-htmlviewer
- Homepage: https://github.com/TiagoHellebrandt/react-native-htmlviewer#readme
- Issues: https://github.com/TiagoHellebrandt/react-native-htmlviewer/issues
- npm.io page: https://npm.io/package/react-native-htmlviewer

## Dependencies (4)

- [buffer](https://npm.io/package/buffer.md) ^5.2.1
- [events](https://npm.io/package/events.md) ^3.0.0
- [entities](https://npm.io/package/entities.md) ^2.0.0
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.10.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-07-05
- 1.0.5 — 2021-06-30
- 1.0.4 — 2021-06-30
- 1.0.3 — 2020-08-28
- 1.0.2 — 2020-07-18
- 1.0.1 — 2020-06-04
- 1.0.0 — 2019-07-18

## README

# react-native-htmlviewer

  

Converta string HTML em componentes nativos para React Native.

  

## Uso básico

    import React, { Component } from 'react';
    import HTMLViewer from 'react-native-htmlviewer';
    
    export default class MyScreen extends Component {
	    render() {
		    return (
			    <HTMLViewer 
				    html={"<p>Olá, mundo!</p>"}
			    />
		    );
	    }
    }

## Personalização simples

    import React, { Component } from 'react';
    import HTMLViewer from 'react-native-htmlviewer';
    
    export default class MyScreen extends Component {
	    render() {
		    return (
			    <HTMLViewer 
				    html={"<p>Olá, mundo!</p>"}
				    customProps={{
					    img: {
						    maxWidth: Dimensions.get('window').width - 40
					    }
				    }}
			    />
		    );
	    }
    }

---
_Source: https://npm.io/package/react-native-htmlviewer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
