MCPcopy
hub / github.com/meliorence/react-native-render-html

github.com/meliorence/react-native-render-html @v6.3.4 sqlite

repository ↗ · DeepWiki ↗ · release v6.3.4 ↗
748 symbols 1,900 edges 436 files 37 documented · 5%
README
<a href=""
  ><img
    src="https://img.shields.io/badge/platforms-Android%20%7C%20iOS%20%7C%20MacOs%20%7C%20Windows-brightgreen.svg?colorB=191A17"
    alt="platforms"
/></a>
<a href="https://github.com/expo/expo"
  ><img
    src="https://img.shields.io/badge/Runs%20with%20Expo-000.svg?style=flat&amp;logo=EXPO&amp;labelColor=ffffff&amp;logoColor=000"
    alt="runs with expo"
/></a>






<a href="https://www.npmjs.com/package/react-native-render-html"
  ><img
    src="https://img.shields.io/npm/v/react-native-render-html/latest"
    alt="npm"
/></a>
<a href="https://www.npmjs.com/package/react-native-render-html"
  ><img
    src="https://img.shields.io/npm/v/react-native-render-html/next"
    alt="npm"
/></a>
<a href="https://www.npmjs.com/package/react-native-render-html"
  ><img
    src="https://img.shields.io/npm/dm/react-native-render-html.svg?colorB=007ec6"
    alt="npm"
/></a>






<a href="https://codecov.io/gh/meliorence/react-native-render-html"
  ><img
    src="https://img.shields.io/codecov/c/gh/meliorence/react-native-render-html"
    alt=""
/></a>
<a
  href="https://github.com/meliorence/react-native-render-html/actions?query=branch%3Amaster+workflow%3ACI"
  ><img
    src="https://github.com/meliorence/react-native-render-html/workflows/CI/badge.svg?branch=master"
    alt=""
/></a>
<a href="https://github.com/meliorence/react-native-render-html/issues"
  ><img
    src="https://img.shields.io/github/issues/meliorence/react-native-render-html.svg"
    alt="github issues"
/></a>
<a href="https://semver.org/spec/v2.0.0.html"
  ><img src="https://img.shields.io/badge/semver-2.0.0-e10079.svg" alt=""
/></a>






<a href="https://discord.gg/dbEMMJM"
  ><img
    src="https://img.shields.io/discord/736906960041148476?label=discord"
    alt=""
/></a>
<a
  href="https://openbase.com/js/react-native-render-html?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge"
  ><img
    src="https://badges.openbase.com/js/rating/react-native-render-html.svg"
    alt="Rate on Openbase"
/></a>












<a href="https://meliorence.github.io/react-native-render-html/"><img width="124" height="124" src="https://github.com/meliorence/react-native-render-html/raw/master/assets/logo.svg"></a>

react-native-render-html

Based on the original work of Thomas Beverley, props to him.

An iOS/Android pure javascript react-native component that renders your HTML into 100% native views.

<a href="https://meliorence.github.io/react-native-render-html/blog/2021/06/27/create-blog-app-rnrh-I"><img width="320" height="744" src="https://github.com/meliorence/react-native-render-html/raw/master/assets/demo.gif"></a>

🗃️ Releases

The Foundry (v6) release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who are coming from v5 and below.

:warning: You are on the master branch which is home for the latest development. Check the table bellow to get documentation for your exact version.

Minor Branch Documentation Latest
next master - npm
6.3 release/6.3 Official Website npm
5.1   release/5.1   release/5.1/README.md npm
4.2   release/4.2   release/4.2/README.md npm

:computer: Install

npm install react-native-render-html
yarn add react-native-render-html

:speedboat: Basic Usage

import React from 'react';
import { useWindowDimensions } from 'react-native';
import RenderHtml from 'react-native-render-html';

const source = {
  html: `



  Hello World!


`
};

export default function App() {
  const { width } = useWindowDimensions();
  return (
    <RenderHtml
      contentWidth={width}
      source={source}
    />
  );
}

:blue_book: Documentation

See our official website and the official Discovery App.

:iphone: Example

You like to learn by example? We have a tutorial from which the demo GIF has been extracted: A WebView-free Blog App with React Native Render HTML.

:notebook: Changelog

The changelog is available here: packages/render-html/CHANGELOG.md.

:bulb: Help

Please refer to our dedicated document.

👥 Community

You're always welcome to join our discord channel :-).

:pencil: Contributing

Check-out our contributing guide.

:blue_heart: Sponsorship

Want to support this project or hire us to implement a feature? Check out this page.

:balance_scale: License

The source code is licensed under BSD 2-Clause "Simplified" License.

Extension points exported contracts — how you extend this code

ImageDimensions (Interface)
(no doc)
packages/render-html/src/shared-types.ts
SnippetDeclaration (Interface)
(no doc)
apps/discovery/types.tsx
TokenProps (Interface)
(no doc)
apps/website/src/typeui/tokens.tsx
Options (Interface)
(no doc)
doc-tools/doc-docsusaurus-rfg-plugin/src/index.ts
PageSpecs (Interface)
(no doc)
doc-tools/doc-pages/src/pages-types.ts
IntrinsicElements (Interface)
(no doc)
doc-tools/doc-mdx-gen-cli/src/render/index.ts
GenericPressableProps (Interface)
(no doc)
packages/render-html/src/shared-types.ts
ResourceRouteDefinition (Interface)
(no doc)
apps/discovery/src/nav-model.ts

Core symbols most depended-on inside this repo

useColorRoles
called by 38
apps/discovery/src/substratum/index.tsx
useToolkit
called by 23
doc-tools/doc-pages/src/toolkit/useToolkit.ts
parseCodeBlockTitle
called by 17
apps/website/src/theme/CodeBlock/parseCodeBlockTitle.js
usePlaygroundStateSlice
called by 13
apps/discovery/src/components/templates/PlaygroundTemplate/playgroundStore.tsx
normalizeResourceLocator
called by 10
packages/render-html/src/helpers/normalizeResourceLocator.ts
usePlaygroundSetter
called by 10
apps/discovery/src/components/templates/PlaygroundTemplate/playgroundStore.tsx
renderType
called by 9
apps/website/src/typeui/renderType.tsx
useSharedProps
called by 8
packages/render-html/src/context/SharedPropsProvider.tsx

Shape

Function 569
Interface 88
Method 52
Class 39

Languages

TypeScript100%

Modules by API surface

doc-tools/doc-docusaurus-typedoc-plugin/src/gen-pages.js31 symbols
packages/render-html/src/shared-types.ts28 symbols
doc-tools/doc-mdx-gen-cli/src/render/MDXRenderer.ts22 symbols
doc-tools/doc-pages/src/toolkit/makeSnippet.tsx12 symbols
apps/discovery/src/providers/PageToolkitProvider.tsx12 symbols
doc-tools/doc-pages/src/toolkit/ToolkitProvider.tsx11 symbols
doc-tools/doc-docsusaurus-rfg-plugin/src/index.ts11 symbols
apps/discovery/src/components/templates/PlaygroundTemplate/playgroundStore.tsx10 symbols
apps/discovery/src/components/resources/PlaygroundLists.tsx10 symbols
doc-tools/doc-docusaurus-typedoc-plugin/src/index.js9 symbols
apps/discovery/src/highlight/Highlighter.tsx9 symbols
packages/render-html/src/render/RenderRegistry.ts8 symbols

Dependencies from manifests, versioned

@babel/cli7.13.16 · 1×
@babel/core7.13.16 · 1×
@babel/plugin-transform-react-jsx7.13.12 · 1×
@babel/preset-react7.13.13 · 1×
@babel/preset-typescript7.13.0 · 1×
@babel/runtime7.13.17 · 1×
@commitlint/cli12.1.1 · 1×
@commitlint/config-conventional12.1.1 · 1×
@doc/constantsworkspace:* · 1×
@doc/mdx-gen-cliworkspace:* · 1×
@doc/pagesworkspace:* · 1×
@doc/svg-componentworkspace:* · 1×

For agents

$ claude mcp add react-native-render-html \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact