Skip to content

native-html/render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,869 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

** We've moved from react-native-render-html to @native-html/native. The v1 release is stable, and is now-on the recommended. @native-html/native v1 follows exactly the same API as react-native-render-html does, so migrating is plug-and-play.

⚠️ 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 :-).

Credits

This project has been built and is maintained thanks to the support from jsamr and Software Mansion

jsamr swm

πŸ“ Contributing

Check-out our contributing guide.

πŸ’™ Sponsorship

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

Core Libraries for @native-html/render

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

About

Official fork of react-native-render-html

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors