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

@starbemtech/react-native-starsystem

v1.1.0

Published

Starbem React Native UI Toolkit

Downloads

203

Readme


Table of Contents


Overview

@starbemtech/react-native-starsystem is the official React Native UI library for the Starbem design system (Star System). It provides a set of themeable, accessible components ready for iOS and Android, built on top of React Native's core primitives.

  • Full TypeScript support with exported prop types
  • Theming via ThemeProvider — override any token globally
  • Consistent design language aligned with the Star System Figma DS
  • Compatible with React Native >= 0.64 and React >= 17

Requirements

| Dependency | Minimum version | |-------------------------|-----------------| | Node.js | >= 18 | | React Native | >= 0.64 | | React | >= 17 | | TypeScript (optional) | >= 5.0 |


Installation

# pnpm (recommended)
pnpm add @starbemtech/react-native-starsystem

# npm
npm install @starbemtech/react-native-starsystem

# yarn
yarn add @starbemtech/react-native-starsystem

Peer Dependencies

Install the required peer dependencies in your project:

pnpm add react-native-vector-icons react-native-safe-area-context

react-native-vector-icons

Follow the official linking guide for iOS and Android.

react-native-safe-area-context

Wrap your app root with SafeAreaProvider:

import { SafeAreaProvider } from 'react-native-safe-area-context';

export default function App() {
  return (
    <SafeAreaProvider>
      {/* your app */}
    </SafeAreaProvider>
  );
}

Font — Funnel Display

Star System uses Funnel Display as the brand typeface. Add the font files to your project:

Android — copy the .ttf files to android/app/src/main/assets/fonts/:

FunnelDisplay-Regular.ttf
FunnelDisplay-Medium.ttf
FunnelDisplay-SemiBold.ttf
FunnelDisplay-Bold.ttf

iOS — add the files to your Xcode project and register them in Info.plist:

<key>UIAppFonts</key>
<array>
  <string>FunnelDisplay-Regular.ttf</string>
  <string>FunnelDisplay-Medium.ttf</string>
  <string>FunnelDisplay-SemiBold.ttf</string>
  <string>FunnelDisplay-Bold.ttf</string>
</array>

Auto-link via react-native.config.js:

module.exports = {
  assets: ['./assets/fonts/'],
};

Then run npx react-native-asset to copy the files automatically.

If the font is not linked, React Native falls back to the system default font silently.


Quick Start

import React from 'react';
import { View } from 'react-native';
import { Button, Text, ThemeProvider } from '@starbemtech/react-native-starsystem';

export default function App() {
  return (
    <ThemeProvider>
      <View style={{ flex: 1, justifyContent: 'center', padding: 24 }}>
        <Text h3>Hello, Star System</Text>
        <Button
          title="Get Started"
          onPress={() => console.log('pressed')}
        />
      </View>
    </ThemeProvider>
  );
}

Theming

Wrap your app with ThemeProvider to apply a custom theme. Every component reads from the theme context, so a single override propagates to all components.

import { ThemeProvider } from '@starbemtech/react-native-starsystem';

const theme = {
  colors: {
    primary: '#FF6B19',
    secondary: '#FF3F72',
  },
  Button: {
    raised: true,
  },
};

export default function App() {
  return (
    <ThemeProvider theme={theme}>
      {/* children */}
    </ThemeProvider>
  );
}

useTheme hook

import { useTheme } from '@starbemtech/react-native-starsystem';

function MyComponent() {
  const { theme, updateTheme } = useTheme();
  return <View style={{ backgroundColor: theme.colors.primary }} />;
}

makeStyles

import { makeStyles } from '@starbemtech/react-native-starsystem';

const useStyles = makeStyles((theme) => ({
  container: {
    backgroundColor: theme.colors.primary,
    borderRadius: 8,
  },
}));

function MyComponent() {
  const styles = useStyles();
  return <View style={styles.container} />;
}

Components

| Component | Description | |------------------|---------------------------------------------------------------| | AnimatedImage | Image with entrance animation via react-native-animatable | | AnimatedText | Text with entrance animation | | AnimatedView | View with entrance animation | | Avatar | User avatar with image, icon, or initials fallback | | Badge | Numeric or status badge, composable with Avatar | | BottomSheet | Modal bottom sheet overlay | | Button | Solid, outline, and clear variants with loading state | | Card | Surface container with optional image, title, and divider | | CheckBox | Accessible checkbox with custom icon support | | ContentBox | Padded content container | | Divider | Horizontal line separator | | Header | App navigation header with left/center/right slots | | Icon | Icon from any react-native-vector-icons pack | | Image | Image with placeholder and fade-in transition | | Input | Text input with label, error state, and left/right icons | | LinearProgress | Determinate and indeterminate progress bar | | ListItem | Row item with accordion and swipeable variants | | Switch | Toggle switch | | Tab | Tab bar with active indicator | | TabView | Swipeable tab view container | | Text | Typography component with h1h4 and paragraph variants |


Utilities

import {
  colors,                 // default color palette
  fonts,                  // default font definitions
  normalize,              // scale text size across screen densities
  getStatusBarHeight,     // safe status bar height (iPhoneX-aware)
  getBottomSpace,         // safe bottom space (iPhoneX-aware)
  isIphoneX,              // boolean device check
  ifIphoneX,              // conditional value helper
  getIconType,            // resolve icon set by name
  registerCustomIconType, // register a custom icon set
  withBadge,              // HOC to wrap any component with a Badge
  withTheme,              // HOC to inject theme into any component
} from '@starbemtech/react-native-starsystem';

TypeScript

All components export their prop types. Import them directly:

import type {
  AnimatedProps,
  AvatarProps,
  BadgeProps,
  BottomSheetProps,
  ButtonProps,
  CardProps,
  CheckBoxProps,
  Colors,
  ContentBoxProps,
  DividerProps,
  FullTheme,
  HeaderProps,
  IconProps,
  ImageProps,
  InputProps,
  LinearProgressProps,
  ListItemAccordionProps,
  ListItemProps,
  ListItemSwipeableProps,
  ReplaceTheme,
  SwitchProps,
  TabItemProps,
  TabProps,
  TabViewProps,
  TextProps,
  Theme,
  ThemeProps,
  UpdateTheme,
} from '@starbemtech/react-native-starsystem';

Contributing

Contributions are welcome — bug reports, documentation improvements, and pull requests.

Reporting a bug

Open an issue on GitHub Issues and include:

  • @starbemtech/react-native-starsystem version
  • React Native and React versions
  • Platform (iOS / Android) and OS version
  • Minimal code to reproduce the issue
  • Expected vs. actual behavior

Submitting a pull request

  1. Fork the repository and create a branch:
    git checkout -b feat/your-feature-name
  2. Install dependencies (requires Node >= 18 and pnpm >= 9):
    pnpm install
  3. Make your changes, then verify:
    pnpm build   # must produce zero TypeScript errors
    pnpm test    # all tests must pass
    pnpm lint    # no lint errors
  4. Open a PR against main describing what changed and why.

Guidelines

  • All new components must be written in TypeScript and export their prop types from src/index.ts.
  • Do not introduce new runtime dependencies without prior discussion.
  • any casts are only acceptable for documented third-party type conflicts — add an inline comment explaining the reason.
  • Keep PRs focused. One concern per PR is easier to review and revert if needed.

Changelog

See CHANGELOG.md for the full release history.


License

MIT © Starbem