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

@runitbk/native

v0.1.1

Published

React Native components for the RunItBack design system, built on rn-primitives and NativeWind.

Readme

@runitbk/native

The React Native components. Same tokens, same design language as @runitbk/react; NativeWind v5 does the styling, rn-primitives supplies behavior where RN core has none.

Ships raw TypeScript — no build. Your app's Metro compiles it, which is also what lets NativeWind scan its class strings.

Wiring an app

The app owns the styling runtime. This package never depends on nativewind or react-native-css — a second copy of that runtime crashes at startup (stack overflow), so don't add them here, and don't add them to the workspace root.

  1. Install nativewind + react-native-css (exact pins — they ship as a coupled pair) plus this package. See the repo README's Native section for the react-native-worklets and lightningcss pins and the vendored react-native-css tarball; all load-bearing. Note: react-native-css must ship dist/nativewind/metro is loaded by Node and resolves it directly.

  2. metro.config.js: wrap with withNativewind(config, { input: "./global.css" }).

  3. postcss.config.mjs: the @tailwindcss/postcss plugin, nothing else.

  4. global.css:

    @import "tailwindcss/theme.css" layer(theme);
    @import "tailwindcss/preflight.css" layer(base);
    @import "tailwindcss/utilities.css";
    @import "nativewind/theme";
    @import "@runitbk/styles/theme.css";
    @import "@runitbk/styles/native.css";
    
    @source "../node_modules/@runitbk/native/src"; /* adjust to where it resolves */
    
    :root { font-size: 16px; } /* rem base; the compiler defaults to 14 */

    native.css carries everything the components need beyond the tokens: the per-weight font families, the duration-* utilities, and the fade-in/pop-in mount keyframes. Without it, text renders in system fonts and overlays appear without animation.

  5. Load the faces with useFonts from expo-font (@expo-google-fonts/ibm-plex-sans 400/500/600, .../ibm-plex-mono 400/500/600) and gate rendering on them — native.css references those exact registered names.

  6. Wrap the app in <ThemeProvider>theme="system" | "light" | "dark". Light is the :root baseline; dark swaps the semantic variables, like web's data-theme.

  7. Render <PortalHost /> once, last inside the providers — menus, dialogs, popovers, and toasts mount into it.

  8. Only if you use Drawer: install @gorhom/bottom-sheet and react-native-gesture-handler in the app (this package deliberately doesn't depend on them) and nest <Drawer.Provider> inside <ThemeProvider>:

    <ThemeProvider theme={theme}>
      <Drawer.Provider>
        {/* app */}
        <PortalHost />
      </Drawer.Provider>
    </ThemeProvider>

How components differ from web

  • No text inheritance: <Text> carries the reading defaults; the type scale and tones are classNames (text-title, text-sub), exactly like web markup.
  • Weight rides the font family (font-mono-medium), not font-weight — loaded faces are one family per weight.
  • hover: is active:; focus rings are a border-color swap (focus:border-focus-ring).
  • State styling is prop-driven (checked, disabled, invalid) — there are no data attributes on native.

Known parity gaps

  • Checkbox has no indeterminate state (rn-primitives limitation).
  • Field has no validation context — wire invalid and Field.Error yourself.
  • Dark-mode shadows keep their light values (variable provider is colors-only so far).
  • react-native-web is untested and unthemed; web apps use @runitbk/react.

Contributing

  • src/themes.ts is generated — after changing the dark block in @runitbk/styles/tokens.css, run pnpm --filter @runitbk/native generate:themes.
  • Shared internals live in src/shared.tsx (PlainChildren, clamp, useThemeColor, wrapLabel, menu icons); shared class strings in menuClasses.ts and surfaceClasses.ts. Add to those rather than redeclaring per component.
  • Verify with both type programs: pnpm --filter @runitbk/native typecheck and npx tsc --noEmit from playground/ — they resolve types differently and both must pass.