Skip to content

tristanheilman/react-native-render-html

 
 

Repository files navigation

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


📝 Credits: This is a maintained fork of react-native-render-html by Meliorence. All credit goes to the original authors for their excellent work. The contents of this fork compared to the parent have been significantly slimmed down; only the render-html package is included in this repository.

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. This is a maintained fork of the original library. For migration from v5 and below, please refer to the original documentation.

⚠️ 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 GitHub Repository 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 @tristanheilman/react-native-render-html
yarn add @tristanheilman/react-native-render-html

🚤 Basic Usage

import React from 'react';
import { useWindowDimensions } from 'react-native';
import RenderHtml from '@tristanheilman/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 GitHub repository for documentation and examples.

📱 Example

You like to learn by example? Check out the examples in our GitHub repository.

📓 Changelog

The changelog is available here: 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 99.5%
  • Other 0.5%