Skip to content

native-html/render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,852 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platforms runs with expo
npm npm npm
github issues


@native-html/render

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 main branch which is home for the latest development. Check the table bellow to get documentation for your exact version.

Minor Branch Documentation Latest
next main - npm

💻 Install

npm install @native-html/render
yarn add @native-html/render

🚤 Basic Usage

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

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

📱 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 Native 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.

Core Librairies for @native-html/render

Package Release Build Status Coverage
@native-html/css-processor npm CI codecov
@native-html/transient-render-engine npm CI codecov