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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-html-tag

v0.0.2

Published

A package for the developers who are more comfortable with using html tags rather than react native tags, you can use html tags on your react native project and this package with convert the code to native react native tags for you. Cheers!

Downloads

4

Readme

react-native-html-tag

So you are a web developer who is familier with the HTML tags and stuffs. Now you are exploring react-native to get into mobile app development. Wise choice indeed! But you cannot get along the react-native's native render system, Using View, Text, Scrollview etc are very annoying for the first time users. But you should get along with the terminology!

If you are in a rush, then check this package. You write your normal html tags, and this package will covert the tags for you. But yes, you have to use Capital Tag like, Div, P, Body, H1, H2 ...... you get the point! (React native doesn't support lowercase component name!)

Instalation

npm install --save react-native-html-tag

Use

import {Body, Section, Div} from 'react-native-html-tag'

Make sure to import the tag you are using from the package.

Overview (v0.0.1)

Body Puts all child components into a ScrollView. A Scrollable Div in HTML term!

Section Puts all Child components into a View with flex:1

Div

Puts all Child components into a View. Also you can just write strings inside a Div, this package took care of Text strings must be rendered within a <Text> component error. But be careful on using that. using Text or P/H1/H2/H3/H4/H5 tag is recommended here.

You can add overflow / overflow={true} / overflow='auto' to make a Div scrollable

P

Works just like Normal html <p> tag.

H1

Works just like Normal html <h1> tag.

H2

Works just like Normal html <h2> tag.

H3

Works just like Normal html <h3> tag.

H4

Works just like Normal html <h4> tag.

H5

Works just like Normal html <h5> tag.

Add your own styles if you want on the tags using React's default StyleSheet property