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-radial-tabs

v0.1.1

Published

An accessible React Native tab bar that branches into a radial (pie) menu on long-press. Fit deep tab trees into a tiny footprint — hold a tab, swipe to a sub-option, release to pick.

Readme

react-native-radial-tabs

An accessible React Native tab bar that branches into a radial menu on long-press. Fit a deep tab tree into a tiny footprint: tap a tab to switch, press & hold a tab to bloom its options in a semicircle above your thumb, swipe to one and release to pick. Deep trees support drill-down.

  • 📱 Built for phones — Expo / React Native, iOS + Android
  • 🌳 Arbitrary tab trees (children, nested as deep as you like)
  • 🎨 Themeable via a plain JS theme object + render-slot props
  • Accessible — VoiceOver/TalkBack get a navigable list menu fallback; honors reduce-motion
  • ⚡ 60fps gestures on the UI thread (Reanimated + Gesture Handler)

Ported from a web prototype (kept in reference/). This package is the React Native version.

See it in action

Screenshots rendered from the interaction prototype in reference/; the React Native component renders the same UI. Run it live on your phone via the example app.

Install

npm install react-native-radial-tabs
# peer deps (Expo: use `npx expo install`)
npx expo install react-native-gesture-handler react-native-reanimated

Setup (once)

  1. Add the Reanimated Babel plugin (must be last) in babel.config.js:
    plugins: ["react-native-reanimated/plugin"]
  2. Wrap your app in GestureHandlerRootView and RadialTabsProvider:
    import { GestureHandlerRootView } from "react-native-gesture-handler";
    import { RadialTabsProvider } from "react-native-radial-tabs";
    
    export default function App() {
      return (
        <GestureHandlerRootView style={{ flex: 1 }}>
          <RadialTabsProvider>
            <YourApp />
          </RadialTabsProvider>
        </GestureHandlerRootView>
      );
    }
    The provider hosts the full-screen overlay so the menu can paint above everything.

Usage

import { Text } from "react-native";
import { RadialTabs, type RadialNode } from "react-native-radial-tabs";

const tabs: RadialNode[] = [
  { id: "home", label: "Home", icon: <Text>🏠</Text> },
  {
    id: "create",
    label: "Create",
    icon: <Text>➕</Text>,
    children: [
      { id: "photo", label: "Photo", icon: <Text>📷</Text> },
      { id: "note", label: "Note", icon: <Text>📝</Text> },
      // branches can nest — release-to-select becomes drill-down automatically
      {
        id: "doc",
        label: "Doc",
        children: [
          { id: "sheet", label: "Sheet" },
          { id: "slides", label: "Slides" },
        ],
      },
    ],
  },
];

<RadialTabs
  items={tabs}
  onSelect={(node, info) => {
    // info.path = full trail, info.type = "tab" | "leaf" | "branch"
    console.log(info.path.map((n) => n.label).join(" › "));
  }}
/>;

Dock it at the bottom of your screen like any tab bar.

Data model

interface RadialNode {
  id: string;
  label: string;
  icon?: ReactNode;        // any element (vector icon, <Text>emoji</Text>, image)
  children?: RadialNode[]; // presence makes it a branch (hold to open / drill)
  data?: unknown;          // your payload, returned on select
  accessibilityLabel?: string;
}

Props (highlights)

| Prop | Default | Notes | | --- | --- | --- | | items | — | The tab tree. | | value / defaultValue | first tab | Active tab id (controlled / uncontrolled). | | onSelect(node, info) | — | info = { path, tabIndex, type }. | | arc | "semi" | "semi" (180°) · "quarter" (90°) · "full" (360°). | | mode | "auto" | "select" (one level) · "drill" (multi-level) · "auto" (drill when nested). | | longPressMs | 220 | Hold time before bloom. | | dwellMs | 320 | Rest time to drill in / go back. | | deadZone | 30 | Center radius that cancels. | | maxRadius | 150 | Fan radius cap (scales down on small screens). | | theme | dark | Partial<RadialTheme> merged over defaults. | | renderTab / renderItem / renderCenter | — | Full custom content slots. | | style / barStyle / tabStyle / itemStyle | — | Style overrides. |

Theming

No CSS — a plain object merged over DEFAULT_THEME. Set app-wide defaults on the provider, override per instance with the theme prop:

<RadialTabsProvider theme={{ accent: "#ff6b6b" }}>…</RadialTabsProvider>

<RadialTabs theme={{ itemBackground: "#1b1f2e", barBorderRadius: 28, itemSize: 72 }} ... />

Keys: accent, accentText, barBackground, barBorderRadius, tabColor, tabColorActive, itemBackground, itemColor, overlayBackground, ringColor, centerBackground, centerBorder, centerColor, guideLineColor, itemSize, shadowColor.

For total control, use the render slots (renderTab, renderItem, renderCenter).

Accessibility

  • Tabs are a proper tablist/tab with selected state, labels and hints.
  • When a screen reader is active, the swipe wheel (not operable by VoiceOver/TalkBack) is replaced by an equivalent navigable list menu that walks the whole tree.
  • Reduce motion is honored (animations are skipped).

Run the example

cd example
npm install
npx expo start   # open in Expo Go

License

MIT