@fobos531/react-native-render-html
TypeScript icon, indicating that this package has built-in type declarations

6.4.1 • Public • Published

💻 Install

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

🚤 Basic Usage

import React from 'react';
import { useWindowDimensions } from 'react-native';
import RenderHtml from '@fobos531/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}
    />
  );
}

Package Sidebar

Install

npm i @fobos531/react-native-render-html

Weekly Downloads

612

Version

6.4.1

License

BSD-2-Clause

Unpacked Size

818 kB

Total Files

418

Last publish

Collaborators

  • jakov.glavina