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

rn-faster-ui

v0.1.5

Published

A UI library for building react native apps faster

Downloads

8

Readme

npm npm

React Native Fast UI (rn-faster-ui)

A versatile React Native UI library designed to accelerate mobile app development by providing a collection of reusable and customizable components. With rn-faster-ui, you can effortlessly create visually appealing and responsive user interfaces for both Android and iOS platforms faster than ever before.

Table of Contents

Key Features:

Flexible Styling:

rn-faster-ui components supports a wide range of styling props, allowing developers to customize text appearance, alignment, font styles, margins, paddings, and more.

Platform Compatibility:

Built with cross-platform compatibility in mind, components seamlessly adapt to different mobile platforms, ensuring consistent rendering and behavior on both Android and iOS devices.

Installation

npm install --save rn-faster-ui

Usage

import { CText } from 'rn-faster-ui';

// ...

<>
  <CText children="Hello World" c="green" fw="bold" fs={26} />
</>;

Mastering the Library

With rn-faster-ui, you can write UIs for React Native apps in the shortest time possible. Components start with C prefix e.g a Text component is written as CText, a FlatList as CFlatList, Image as CImage, View ad CView, etc. The library focuses on style props that is properties that are passed in the style object in React Native by providing a precise way of writing styles. Non style props can still be passed normally in rn-faster-ui components forexample numOfLines on a Text component, initialNumToRender on a FlatList among others.

  • For properties with one word like color, width, height, etc, you just write the first letter (c="red", w={"100%}, h={200}, etc) and pass it directly as a prop in lower case, not through the style prop, the library does the heavy lifting for you.
import { CText } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CText c="red" w={"100%"} h={200}>
        {"Some Text"}
      </CText>
       <CText children="Some Text" c="red" w={"100%"} h={200}  /> // you can possibly have it self closing
    </>;
  )
}
  • If a property name has 2 words but written in camelCase like fontSize, paddingLeft, fontWeight, etc, you write the first letter of the first word followed by the first letter of the second word (fs={17}, pl={20}, fw={'bold'}, etc) and pass it as a prop in lower case.
import { CText } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CText children="Some Text" fs={17} pl={20} fw={'bold'}  />
    </>;
  )
}
  • If a property name has 3 or more words but written in camelCase like textDecorationColor, testShadowColor, etc, you write the first letter of the first word followed by the first letter of the second word followed by first letter of the third word, in that order (tdc={"red"}, tsc={"blue"}, etc) and pass it as a prop in lower case.
import { CText } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CText children="Some Text" tdc={"red"} tsc={"blue"}  />
    </>;
  )
}
  • If more than one property name start with same letters, regardles of whether its a 1-word, 2-word or 3-word property, we write one of them normally and add an extra character on the rest, e.g fontSize and fontStyle, all have 2 words, and all start with f and s. We write one of them as usual and then include another character on the remaining property for example, we write fontSize as fs and then fontStyle as fst.
import { CText } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CText children="Some Text" fs={20} fst="italic"  />
    </>;
  )
}

Backward Compatibility

The library is backward compatible in relation to its mother component provider that is core react native. If youre not sure the abbreviation of a particular style prop, in addition to checking the documentation for a particular component to find out, you have 2 other options that is writing the style prop normally and passing it to the component with desired style properties inline or through a StyleSheet e.g

import { CView } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CView
      style={{width: 200, height, 400, backgroundColor: '#678900'}} // inline styles(can also accept them through a StyleSheet)
      >
       {/* Content/children goes here */}
      </CView>
    </>;
  )
}

And writing style prop directly as a prop e.g

import { CText } from 'rn-faster-ui';

export const App = () => {
  return (
    <>
      <CText children="Some Text" fontSize={20} color="gray" fontWeight="bold"  />
    </>;
  )
}

In this case, the library does the heavy lifting for you so you donot have to worry whether the library will differentiate a style prop from non-style prop. It definately will do the job very well.

For detailed guide about rn-faster-ui components and API, refer to the Documentation

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT