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 🙏

© 2024 – Pkg Stats / Ryan Hefner

rn-wheel-scroll-date-input-picker

v2.0.0

Published

A simple and customizable scrollable date picker for React Native, allowing users to input or select dates with a custom text field.

Downloads

21

Readme

rn-wheel-scroll-date-input-picker

A sleek, scrollable date picker for React Native that allows users to easily select or input dates through a customizable text input field. Designed for flexibility and seamless integration, with options to personalize colors and styles to fit any app's design.

rn-wheel-scroll-date-input-picker

Installation

To install the package, run:

npm install rn-wheel-scroll-date-input-picker

Or using Yarn:

yarn add rn-wheel-scroll-date-input-picker

Usage

Here's how you can use rn-wheel-scroll-date-input-picker in your project:

import React, { useState } from 'react';
import { View, Text, Button } from 'react-native';
import RnDateInputPicker from 'rn-wheel-scroll-date-input-picker';

const App = () => {
   const [showDateModal, setShowDateModal] = useState(false);
   const [newdate, setNewDate] = useState(new Date());
   const closeModal = () => {
    setShowDateModal(false);
   };

  const onSelected = values => {
    setNewDate(values.date);
  };

  return (
    <View>
      <Button title="Select Date" onPress={() => setShowDateModal(true)} />
       <RnDateInputPicker
        lastYear="1900"
        defaultDate={newdate} // 2024-09-09T11:33:40.097Z
        visible={showDateModal} // show Modal
        closeModal={closeModal} // close Modal
        onSelected={onSelected} // seleted Date
      />
    </View>
  );
};

export default App;

Props

| Prop Name | Type | Default | Description | | ---------------------- | ---------- | ------------ | ----------------------------------------------------------------------------------------------------------------- | | lastYear | string | "1900" | The minimum year limit that can be selected in the date picker. | | defaultDate | Date | new Date() | The default date that will be selected when the date picker opens. Pass a JavaScript Date object. | | visible | boolean | false | Controls the visibility of the date picker modal. Set true to show the modal, and false to hide it. | | closeModal | function | null | Callback function that closes the modal. Typically passed as a function to hide the modal. | | onSelected | function | null | Callback function triggered when a date is selected. The selected date is passed as a parameter to this function. | | btnColor | string | #000 | Defines the background color of the action button (e.g., "Confirm" or "Cancel"). Accepts a valid color string. | | activeTextColor | string | #000 | Defines the text color for the currently selected date. Accepts a valid color string. | | highlightBorderWidth | number | 1 | Specifies the width of the border used to highlight the selected date. Accepts a number value for pixel width. |