npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pv-html-react-native-covertor

v1.0.1

Published

Convert HTML-like layouts to React Native components.

Readme

pv-html-react-native-covertor

A lightweight React Native utility to convert HTML-like content into React Native components.

Installation

npm install pv-html-react-native-covertor

⚡Usage

Example:

import React from 'react';
import { HtmlView } from 'pv-html-react-native-covertor';

const rawHtml = `
<html>
  <head>
    <title>Lorem Ipsum Universe</title>
  </head>
  <body>
    <header>
      <h1><span>Welcome to the <b>Lorem Ipsum</b> World</span></h1>
      <h2><i>Sample & Placeholder Updates</i></h2>
    </header>
    <main>
      <h3>Main Storyline</h3>
      <div>
        <p>
          <b>Lorem</b> and <u>Ipsum</u> are placeholder texts used for design. 
          Their goal is to create a <mark>dummy layout</mark>.
        </p>
        <p>
          The world is full of <i>meaningless filler</i> text.<br>
          However, <i>Lorem</i> was designed for readability.
        </p>
        <hr>
        <p>
          Here is a sample image for design:
        </p>
        <img src="https://fastly.picsum.photos/id/64/4326/2884.jpg?hmac=9_SzX666YRpR_fOyYStXpfSiJ_edO3ghlSRnH2w09Kg" />
      </div>

      <h4>Highlights</h4>
      <p>
        <span>Placeholder content</span> is <b>helpful</b> and <i>versatile</i>, filled with <u>dummy text</u>.
      </p>

      <h5>Upcoming Content</h5>
      <p>
        Stay tuned for more <mark>updates</mark> and <b>samples</b> in upcoming versions.
      </p>
    </main>

    <footer>
      <h6>Contact Us</h6>
      <p>
        For more info, visit the official <u>Lorem Ipsum</u> documentation.
      </p>
    </footer>
  </body>
</html>
`;

export default function App() {
  const imageUrl = "https://fastly.picsum.photos/id/64/4326/2884.jpg?hmac=9_SzX666YRpR_fOyYStXpfSiJ_edO3ghlSRnH2w09Kg";
  
  return (
    <HtmlView
      html={rawHtml}
      wordCount={2}                // Bold first 2 words of each block
      titleAlign="center"      // Align title: 'left' | 'center' | 'right'
      imageUrl={imageUrl}
      insertAfterParagraph={1} // Insert dynamic image after first paragraph
    />
  );
}

✨Features

  • Works with Rich Text Editor (RTE) output as input HTML.
  • Convert HTML headings, paragraphs, and images to React Native components.
  • Inline tag support: <b>, <i>, <u>, <mark>, <span>.
  • Automatic <title> extraction.
  • Insert dynamic images after specific paragraphs.
  • Count-based word bolding (first n words bold).
  • Fully customizable with StyleSheet.
  • Written in TypeScript (ESNext).

License

MIT © 2025 Prasanth K