react-native-headers

1.1.3 • Public • Published

react-native-headers

Simple HTML like header elements for react-native

Installation

npm install react-native-headers --save

Use

Reference node module, export variable components.

var {H1, H2, H3, H4, H5, H6} = require('react-native-headers');

Now, just reference and use like you would with html

        <H1>{this.props.foo}</H1>
        <H2>{this.props.bar}</H2>
        <H3>this is an H3 or header 3</H3>
        <H4>...and so on</H4>

Currently only addresses font sizes. Yes, this is a very simple implementation. May address things like line-height, margins, padding etc in the future.

Package Sidebar

Install

npm i react-native-headers

Weekly Downloads

7

Version

1.1.3

License

ISC

Last publish

Collaborators

  • sheebz