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

react-native-label

v0.0.1-alpha.1

Published

🥇Apply a label to anything in React Native.

Downloads

79

Readme

react-native-label

🥇Apply a label to anything in React Native. Supports Android, iOS and Web.

Table of Contents

1. 🤔 Do I need react-native-label?

Let's answer your question with a slightly different, much more biased set of questions:

  • Do you want fully customizable labels?
  • Do you want to embed stateful components in your labels?
  • Do you want to label your labels?
  • Do you want to label your label's labels?

If you have answered any or none of the above, then this repository is for you!

2. 🚀 Getting Started

Using npm:

npm install --save react-native-label

Using yarn:

yarn add react-native-label

That's all.

2.1 ✍️ Example

A React Native Label can be applied to any component you want. You can pass either a text String to the title prop, or provide a custom component to render.

import React from "react";
import {View} from "react-native";
import Label, {Orientation} from "react-native-label";

export default () => (
  <Label
    orientation={Orientation.TOP_RIGHT}
    containerStyle={{
      width: 300,
      height: 300,
    }}
    title="Hello, world!"
    color="orange"
    distance={250}
  >
    <View
      style={{
        flex: 1,
        backgroundColor: "green",
      }}
    />
  </Label>
);

This code yields the following result:

Check out the complete list of available Prop Types in the section below.

3. 📜 Props and Documentation

| Prop Name | Type | Initial Value | Description | |----------------|---------------------------|------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| | orientation | Orientation | Orientation.TOP_RIGHT | Where to position the label over the nested view. | | distance | Number | 100 | How far to render the label from the corner. | | containerStyle | shape({}) | {flex:1} | How to style the container of the parent. | | style | shape({}) | {fontSize: 30, color: 'white', textAlign: 'center', alignItems: 'center', justifyContent: 'center'} | How to style the label's title. | | title | String \|\| ElementType | undefined | The label child. This is either a string or a React Component. | | color | String | "#C2185B" | The color of the label. | | ratio | Number | 0.8 | The ratio of label point height to banner height. | | extent | Number | 0.5 | The level of stretching to apply to the label ribbons. | | shadowProps | shape({}) | {shadowColor: "#000", shadowOffset: { width: 0, height: 12, }, shadowOpacity: 0.2, shadowRadius: 8, elevation: 24} | The style of the label's shadows. |

4. ✌️ License

MIT