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

@eliasleyton/test-poc-2

v1.0.9

Published

Este proyecto contiene una biblioteca de componentes UI reutilizables que se pueden utilizar en otros proyectos.

Readme

Biblioteca de Componentes UI

Este proyecto contiene una biblioteca de componentes UI reutilizables que se pueden utilizar en otros proyectos.

Componentes UI Exportables

Compilar la biblioteca

Para compilar la biblioteca y generar los archivos distribución:

# Compilar la biblioteca
npm run build

Esto generará una carpeta dist con todos los componentes y tipos exportables.

Uso en otros proyectos

Hay dos formas de usar esta biblioteca:

Opción 1: Importar directamente desde la carpeta /lib

import { StandaloneButton } from '@/ruta/a/lib/export';

function MyComponent() {
  return (
    <StandaloneButton 
      title="Mi Botón" 
      variant="primary" 
      onPress={() => console.log('Botón presionado')} 
    />
  );
}

Opción 2: Compilar y usar como paquete npm

  1. Compila la biblioteca: npm run build
  2. Instala la biblioteca en tu proyecto:
    # Usando npm pack
    npm pack
    npm install ../ruta/al/test2-1.0.0.tgz
       
    # O enlazando directamente
    npm link ../ruta/al/proyecto
  3. Importa los componentes:
    import { StandaloneButton } from 'test2';
       
    function MyComponent() {
      return (
        <StandaloneButton 
          title="Mi Botón" 
          variant="primary" 
        />
      );
    }

Opciones de importación

1. Componente independiente (recomendado)

import { StandaloneButton } from '@/ruta/a/lib/export';

// El botón incluye su propio ThemeProvider
<StandaloneButton 
  title="Mi Botón" 
  variant="primary"
  initialTheme="system" // 'light', 'dark' o 'system'
/> 

2. Múltiples componentes con un solo ThemeProvider

import { 
  StandaloneThemeProvider, 
  StandaloneButtonInner, 
  useStandaloneTokens 
} from '@/ruta/a/lib/export';

function MyComponent() {
  return (
    <StandaloneThemeProvider initialTheme="system">
      <Content />
    </StandaloneThemeProvider>
  );
}

function Content() {
  const { tokens, isDark, toggleTheme } = useStandaloneTokens();
  
  return (
    <View style={{ backgroundColor: tokens.background }}>
      <StandaloneButtonInner 
        title="Botón primario" 
        variant="primary" 
      />
      
      <StandaloneButtonInner 
        title="Cambiar tema" 
        variant="secondary"
        onPress={toggleTheme}
      />
    </View>
  );
}

Documentación detallada

Para más información sobre cómo usar estos componentes, consulta el archivo lib/README.md.

Ejecutar el proyecto de ejemplo

# Instalar dependencias
npm install

# Iniciar el proyecto
npm start

Una vez iniciado, navega a la pestaña "Components" para ver los ejemplos de los botones disponibles.

Welcome to your Expo app 👋

This is an Expo project created with create-expo-app.

Get started

  1. Install dependencies

    npm install
  2. Start the app

    npx expo start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Get a fresh project

When you're ready, run:

npm run reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.