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

@sinandsean/react-native-wheel-picker

v0.1.0

Published

A high-performance native wheel picker for React Native with smooth scrolling, haptic feedback, and customizable styling

Downloads

32

Readme

@sinandsean/react-native-wheel-picker

A high-performance native wheel picker for React Native with smooth scrolling, haptic feedback, and customizable styling.

Features

  • Native implementation for both iOS and Android
  • Smooth scroll with momentum and snap-to-item
  • Haptic feedback on item change
  • Customizable font family
  • Optional unit labels (e.g., "kg", "cm")
  • Multi-column picker support
  • TypeScript support

Installation

npm install @sinandsean/react-native-wheel-picker
# or
yarn add @sinandsean/react-native-wheel-picker

iOS

cd ios && pod install

Android

No additional setup required. The library will auto-link.

Usage

Basic Usage

import { WheelPicker } from "@sinandsean/react-native-wheel-picker";

function App() {
  const [selectedIndex, setSelectedIndex] = useState(0);
  const items = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"];

  return (
    <WheelPicker
      items={items}
      selectedIndex={selectedIndex}
      onValueChange={setSelectedIndex}
    />
  );
}

With Unit Label

<WheelPicker
  items={["50", "55", "60", "65", "70", "75", "80"]}
  selectedIndex={selectedIndex}
  unit="kg"
  onValueChange={setSelectedIndex}
/>

Multi-Column Picker

import { MultiColumnWheelPicker } from "@sinandsean/react-native-wheel-picker";

function HeightPicker() {
  const [feet, setFeet] = useState(5);
  const [inches, setInches] = useState(6);

  return (
    <MultiColumnWheelPicker
      columns={[
        {
          values: ["4", "5", "6", "7"],
          unit: "ft",
          selectedIndex: feet - 4,
          onSelect: (index) => setFeet(index + 4),
        },
        {
          values: [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "10",
            "11",
          ],
          unit: "in",
          selectedIndex: inches,
          onSelect: setInches,
        },
      ]}
    />
  );
}

Custom Font

<WheelPicker
  items={items}
  selectedIndex={selectedIndex}
  fontFamily="SFProText-Semibold"
  onValueChange={setSelectedIndex}
/>

Props

WheelPicker

| Prop | Type | Required | Description | | --------------- | ------------------------- | -------- | ------------------------------------------- | | items | string[] | Yes | Array of items to display | | selectedIndex | number | Yes | Currently selected item index | | onValueChange | (index: number) => void | No | Callback when selection changes | | unit | string | No | Unit label displayed next to selected value | | fontFamily | string | No | Custom font family name | | style | ViewStyle | No | Container style | | testID | string | No | Test ID for e2e testing |

MultiColumnWheelPicker

| Prop | Type | Required | Description | | ------------ | --------------- | -------- | ------------------------------ | | columns | WheelColumn[] | Yes | Array of column configurations | | fontFamily | string | No | Font family for all columns | | style | ViewStyle | No | Container style | | testID | string | No | Test ID for e2e testing |

WheelColumn

| Property | Type | Required | Description | | --------------- | ------------------------- | -------- | ------------------------------- | | values | string[] | Yes | Array of values for this column | | selectedIndex | number | Yes | Selected index for this column | | onSelect | (index: number) => void | Yes | Selection callback | | unit | string | No | Unit label for this column | | width | number | No | Flex width (default: 1) |

Customization

Visual Specifications

  • Item height: 48dp
  • Visible items: 5
  • Text size: 24sp
  • Selection indicator: Rounded rectangle with 16dp corner radius
  • Default text color: #1C1C1C
  • Selection background: #F7F9FF

Font Setup

iOS: Use the PostScript name of the font (e.g., SFProText-Semibold)

Android: Place font files in android/app/src/main/assets/fonts/ with matching names (e.g., SFProText-Semibold.ttf or .otf)

License

MIT