# react-native-render-html-4.1.2 **Repository Path**: lidaibin/react-native-render-html-4.1.2 ## Basic Information - **Project Name**: react-native-render-html-4.1.2 - **Description**: react-native-render-html-4.1.2 - **Primary Language**: Java - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-18 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-render-html An iOS/Android pure javascript react-native component that renders your HTML into 100% native views. It's made to be extremely customizable and easy to use and aims at being able to render anything you throw at it. > Based on the original work of [Thomas Beverley](https://github.com/Thomas101), props to him. ![platforms](https://img.shields.io/badge/platforms-Android%20%7C%20iOS-brightgreen.svg?style=flat-square&colorB=191A17) [![npm](https://img.shields.io/npm/v/react-native-render-html.svg?style=flat-square)](https://www.npmjs.com/package/react-native-render-html) [![npm](https://img.shields.io/npm/dm/react-native-render-html.svg?style=flat-square&colorB=007ec6)](https://www.npmjs.com/package/react-native-render-html) [![github issues](https://img.shields.io/github/issues/archriss/react-native-render-html.svg?style=flat-square)](https://github.com/archriss/react-native-render-html/issues) [![github closed issues](https://img.shields.io/github/issues-closed/archriss/react-native-render-html.svg?style=flat-square&colorB=44cc11)](https://github.com/archriss/react-native-render-html/issues?q=is%3Aissue+is%3Aclosed) ![react-native-render-html](http://i.giphy.com/26tkmjBLvThP0TSak.gif) ## Table of contents - [react-native-render-html](#react-native-render-html) - [Table of contents](#table-of-contents) - [Install](#install) - [Basic usage](#basic-usage) - [Props](#props) - [Demo](#demo) - [Creating custom renderers](#creating-custom-renderers) - [Custom HTML tags](#custom-html-tags) - [Making your custom component block or inline](#making-your-custom-component-block-or-inline) - [Lists prefixes](#lists-prefixes) - [Styling](#styling) - [Images](#images) - [Altering content](#altering-content) - [alterData](#alterdata) - [alterChildren](#alterchildren) - [alterNode](#alternode) - [onParsed](#onparsed) - [Ignoring HTML content](#ignoring-html-content) - [Useful functions](#useful-functions) ## Install `npm install react-native-render-html --save` or `yarn add react-native-render-html` ## Basic usage ```javascript import React, { Component } from 'react'; import { ScrollView, Dimensions } from 'react-native'; import HTML from 'react-native-render-html'; const htmlContent = `

This HTML snippet is now rendered with native components !

Enjoy a webview-free and blazing fast application

Look at how happy this native cat is `; export default class Demo extends Component { render () { return ( ); } } ``` ## Props Prop | Description | Type | Required/Default ------ | ------ | ------ | ------ `renderers` | Your [custom renderers](#creating-custom-renderers) | `object` | Optional, some default ones are supplied (``, ``...) `renderersProps` | Set of props accessible into your [custom renderers](#creating-custom-renderers) in `passProps` (4th argument) | `object` | Optional `html` | HTML string to parse and render | `string` | Required `uri` | *(experimental)* remote website to parse and render | `string` | Optional `decodeEntities` | Decode HTML entities of your content | `bool` | Optional, defaults to `true` `imagesMaxWidth` | Resize your images to this maximum width, see [images](#images) | `number` | Optional `staticContentMaxWidth` | Set a maximum width to non-responsive content (`