Skip to content

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

License

Notifications You must be signed in to change notification settings

codevise/react-native-render-html

This branch is 2 commits behind meliorence/react-native-render-html:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71e5199 Β· May 14, 2024
Oct 22, 2021
Jun 4, 2021
Dec 12, 2021
Oct 19, 2022
Jan 11, 2022
Jul 8, 2021
Dec 26, 2022
May 14, 2024
Sep 25, 2021
Jun 4, 2021
Oct 22, 2021
Jun 4, 2021
Oct 22, 2021
Dec 12, 2021
Jun 4, 2021
Jun 4, 2021
Oct 19, 2022
Jun 8, 2021
Dec 10, 2021
Dec 10, 2021
Dec 10, 2021
Oct 13, 2021
Jul 6, 2021
Jun 12, 2021
Dec 10, 2021
Jun 4, 2021
Jun 4, 2021
Oct 23, 2021
Oct 19, 2022
Jun 4, 2021
Oct 19, 2022

Repository files navigation

platforms runs with expo
npm npm npm
github issues
Rate on Openbase


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.

πŸ—ƒοΈ 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.

⚠️ 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

πŸ’» Install

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

🚀 Basic Usage

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

const source = {
  html: `
<p style='text-align:center;'>
  Hello World!
</p>`
};

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

πŸ“˜ Documentation

See our official website and the official Discovery App.

πŸ“± 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.

πŸ““ Changelog

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

πŸ’‘ Help

Please refer to our dedicated document.

πŸ‘₯ Community

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

πŸ“ Contributing

Check-out our contributing guide.

πŸ’™ Sponsorship

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

βš–οΈ License

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 76.6%
  • MDX 11.0%
  • JavaScript 8.2%
  • SCSS 3.3%
  • CSS 0.4%
  • Shell 0.4%
  • Ruby 0.1%