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

@_inlimbo/nativeui

v0.0.9

Published

UI elements for react native.

Downloads

12

Readme

React Native UI Kit by InLimbo

Contents

Classes -xs -sm -md -lg -xl

Styles

To import the style sheet used in the UI Kit add the following code to the component

const styles = require('@_inlimbo/nativeui/styles');

Colors

To change the colors used in the kit install the react-native-config dependency to your project

npm i --save react-native-config

Then create an .env file in your root folder and add the folowing variables.

PRIMARY_UI=
SECONDARY_UI=
SUCCESS_UI=
WARNING_UI=
DANGER_UI=
DARK_UI=
LIGHT_UI=

To import the colors used in the UI Kit add the following code. However colors will not work if you have set any of the environment variables above.

const colors = require('@_inlimbo/nativeui/colors');

-prm // blue process.env.PRIMARY_CLR -snd // purple process.env.SECONDARY_CLR

-suc // green process.env.SUCCESS_CLR -fal // red process.env.FAILURE_CLR -wrn // gold provess.env.WARNING_CLR

-drk // black provess.env.DARK_CLR -lgt // white process.env.LIGHT_CLR

Buttons

There are a few options for buttons and are built off of React Native's TouchableHighlight to use them in your project use the code below.

import LimboUI from '@_inlimbo/nativeui';
// or
import { Button } from '@_inlimbo/nativeui';

There are also added color and outline options that can be added to the component to customize it. Color takes a string of one of the defined ui colors and outlined takes a boolean. Buttons also have small medium and large classes that can be added.

// Default button
<LimboUI.Button onPress={()=>{console.log('Pressed!')}}>
  {/* Anything you want! */}
  <Text style={styles.btn__txt}>Default</Text>
</LimboUI.Button>
// Button with options
<Button onPress={()=>{console.log('Pressed!')}}
  color="snd"
  outline={true}
  style={styles.btn_cr.lg}>
  <Text style={styles.btn_otl__txt.snd}>Customized</Text>
</Button>

btn- // button ipt- // input

-ot // outline -sld // solid

Inputs