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

@asba/components

v2.0.13

Published

A base component library for React Native focused on development speed. It provides a simple unstyled structure, reusable components, and a light/dark theme system.

Readme

@asba/components

A base component library for React Native focused on development speed. It provides a simple unstyled structure, reusable components, and a light/dark theme system.

Installation

npm install @asba/components
yarn add @asba/components

After installing, you need to choose the color you want to use for switching between light and dark mode; zinc is the default.

npx @asba/components init

Quick start

import { Box, P, Button, ButtonTitle } from '@asba/components'

export function Example() {
  return (
    <Box style={{ padding: 16 }}>
      <P>Hello, world</P>

      <Button onPress={() => console.log('pressed')}>
        <ButtonTitle style={{ fontWeight: '600' }}>Continue</ButtonTitle>
      </Button>
    </Box>
  )
}

Components

Box

View wrapper (similar to a div in React for web).

import { Box } from '@asba/components'

<Box style={{ padding: 16, backgroundColor: '#f5f5f5' }}>
  {/* content */}
</Box>

Row

View with horizontal layout (flexDirection: 'row') and centered item alignment.

import { Row, P } from '@asba/components'

<Row style={{ justifyContent: 'space-between', padding: 12 }}>
  <P>Product</P>
  <P>$59.90</P>
</Row>

P

Base text component. Default color changes according to the system color scheme (light/dark).

import { P } from '@asba/components'

<P style={{ fontSize: 16 }}>Main screen text</P>

Button and ButtonTitle

Button is a TouchableOpacity wrapper. ButtonTitle is a text component (P) intended for button labels.

import { Button, ButtonTitle } from '@asba/components'

<Button onPress={() => {}} style={{ padding: 12, backgroundColor: '#222' }}>
  <ButtonTitle style={{ color: '#fff', textAlign: 'center' }}>Save</ButtonTitle>
</Button>

Input, InputLabel, and InputField

Set of components for building form fields.

  • Input: field container (Box wrapper).
  • InputLabel: field label with optional error support.
  • InputField: TextInput wrapper with onFocused callback.
import { Input, InputField, InputLabel } from '@asba/components'

<Input style={{ gap: 6 }}>
  <InputLabel error="Required field">Email</InputLabel>
  <InputField
    placeholder="Enter your email"
    autoCapitalize="none"
    keyboardType="email-address"
    onFocused={(focused) => console.log('focused:', focused)}
    style={{ borderWidth: 1, borderColor: '#ddd', borderRadius: 8, padding: 10 }}
  />
</Input>

Scroll

ScrollView wrapper with vertical/horizontal indicators disabled by default.

import { Scroll, P } from '@asba/components'

<Scroll contentContainerStyle={{ padding: 16 }}>
  <P>Long content...</P>
</Scroll>

List

FlashList wrapper (@shopify/flash-list).

import { List, P } from '@asba/components'

const items = [{ id: '1', name: 'Item 1' }, { id: '2', name: 'Item 2' }]

<List
  data={items}
  estimatedItemSize={44}
  keyExtractor={(item) => item.id}
  renderItem={({ item }) => <P>{item.name}</P>}
/>

Exported tokens

You can also use the ready-to-use design tokens from the library:

  • spacings
  • fontSizes
  • borderRadius
import { Box, P, borderRadius, fontSizes, spacings } from '@asba/components'

<Box style={{ padding: spacings.md, borderRadius: borderRadius.lg }}>
  <P style={{ fontSize: fontSizes.lg }}>Title</P>
</Box>

Jest setup

If you use Jest with React Native/Expo, add @asba/components to transformIgnorePatterns:

"transformIgnorePatterns": [
  "node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|@asba/components)"
]