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-rb-wheel-datepicker

v1.0.6

Published

A customizable, smooth, and haptic-enabled **wheel-style date picker** for React Native. It uses `FlatList` to simulate iOS-style scroll wheels, wrapped inside a bottom sheet for a modern UI.

Readme

React Native Wheel DatePicker

A customizable, smooth, and haptic-enabled wheel-style date picker for React Native. It uses FlatList to simulate iOS-style scroll wheels, wrapped inside a bottom sheet for a modern UI.


📷 Preview


✨ Features

  • 🎡 Wheel-style picker for days, months, and years
  • 📱 Cross-platform (iOS & Android)
  • 🎨 Customizable colors & text styles
  • 📳 Haptic feedback for better UX
  • 📅 Initial date support
  • 🔒 Min/Max date support to restrict selectable range
  • 📦 Built with react-native-raw-bottom-sheet

📌 Which package should I install?

We provide two separate packages so you can choose based on your project requirements:

| Requirement | Recommended Package | | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | You only need a date picker (day, month, year) | 📦 react-native-rb-wheel-datepicker | | You need both date & time picker (date + hour/minute + AM/PM) | 📦 react-native-rb-wheel-datetime-picker |

👉 If you only need date selection, we recommend installing the lighter package react-native-rb-wheel-datepicker.

👉 If you need both date and time selection, install react-native-rb-wheel-datetime-picker.


📦 Installation

npm install react-native-rb-wheel-datepicker

or with yarn:

yarn add react-native-rb-wheel-datepicker

Also install required peer dependencies:

npm install react-native-haptic-feedback react-native-raw-bottom-sheet

🚀 Usage

import React, { useState } from "react";
import { Button, View, Text } from "react-native";
import DatePicker from "react-native-rb-wheel-datepicker";

export default function App() {
  const [visible, setVisible] = useState(false);
  const [date, setDate] = useState<Date | null>(null);

  return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Button title="Open Date Picker" onPress={() => setVisible(true)} />
      {date && <Text>Selected Date: {date.toDateString()}</Text>}

      <DatePicker
        title="Select your date"
        isVisible={visible}
        initialDate={new Date()}
        minDate={new Date(2020, 0, 15)} // Jan 15, 2020
        maxDate={new Date(2026, 11, 20)} // Dec 20, 2026
        onClose={() => setVisible(false)}
        onConfirm={(selectedDate) => {
          setDate(selectedDate);
          setVisible(false);
        }}
        primaryColor="#007AFF"
        themeBackgroundColor="#fff"
      />
    </View>
  );
}

⚙️ Props

| Prop | Type | Default | Description | | ---------------------- | ---------------------- | --------------- | ---------------------------------------------------------------------- | | title | string | "Select Date" | Title text shown at the top | | isVisible | boolean | false | Controls modal visibility | | onClose | () => void | required | Called when modal is closed | | onConfirm | (date: Date) => void | required | Returns the selected date | | initialDate | Date | new Date() | Preselected date when opened | | themeBackgroundColor | string | "#FFFFFF" | Background color of the sheet | | primaryColor | string | "#000000" | Highlight color for selected items & confirm button | | titleTextStyle | TextStyle | undefined | Custom style for the title text | | itemTextStyle | TextStyle | undefined | Custom style for list items | | minDate | Date | undefined | Minimum selectable date (e.g. new Date(2020, 0, 15) → Jan 15, 2020) | | maxDate | Date | undefined | Maximum selectable date (e.g. new Date(2026, 11, 20) → Dec 20, 2026) |


📝 License

MIT © CompileX Feel free to contribute via pull requests.