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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@atom-design-mog/calendar

v1.0.1

Published

A styled wrapper around react-native-calendars for easier calendar usage.

Readme

@atom-design-mog/calendar

A customizable and elegant Calendar Component for React Native, built on top of react-native-calendars and styled for the Atom Design System. Supports selected date highlighting, min/max date limits, marked dates, and callback events.

🚀 Installation

Install using npm:

npm install @atom-design-mog/calendar

Also install the required peer dependency:

npm install react-native-calendars

or using yarn:

yarn add @atom-design-mog/calendar react-native-calendars

📸 Preview

The component includes:

  • 📅 Full monthly calendar
  • 🔘 Selected date with Atom red theme
  • 🚫 Min & Max date restrictions
  • 🏷 Support for custom marked dates
  • 📲 Callback when a user selects a date

📦 Usage Example

import React, { useState } from 'react';
import { View, Text, ScrollView } from 'react-native';
import CalendarComponent from '@atom-design-mog/calendar';

export default function TestCalendarsScreen() {
  const [selectedDate, setSelectedDate] = useState('2025-11-17');

  return (
    <ScrollView style={{ flex: 1 }}>
      <View style={{ padding: 20, gap: 20 }}>
        <Text style={{ fontSize: 18, fontWeight: '600' }}>
          Calendar Component
        </Text>

        <CalendarComponent
          selectedDate={selectedDate}
          onDateSelect={setSelectedDate}
          minDate="2025-01-01"
          maxDate="2025-12-31"
        />

        <Text style={{ fontSize: 16 }}>
          Selected Date: {selectedDate}
        </Text>
      </View>
    </ScrollView>
  );
}

🔧 Props API

| Prop | Type | Default | Description | | ---------------- | ------------------------------ | ----------- | ------------------------------------------------ | | selectedDate | string (YYYY-MM-DD) | null | Currently selected date | | onDateSelect | (dateString: string) => void | undefined | Callback triggered when a day is pressed | | minDate | string | undefined | Minimum selectable date | | maxDate | string | undefined | Maximum selectable date | | markedDates | object | {} | Add custom marks on specific dates | | ...props | Calendar component props | — | Additional props passed to underlying Calendar |

🏷 Marked Dates Format

You may pass custom marks like:

const markedDates = {
  "2025-11-17": { marked: true },
  "2025-11-18": { disabled: true },
  "2025-11-19": { selected: true, selectedColor: "#d9232d" }
};

The component automatically merges your marks with the selected date highlight.

🎨 Theming

This component applies Atom Design System colors:

  • Selected color → #d9232d
  • Today's text → #d9232d
  • Arrow color → #d9232d

Clean typography defaults. You can override all theme values via the theme prop if needed.

🎛 Features

  • 📅 Clean, modern calendar UI
  • 🔴 Atom-themed selected date
  • ⛔ Min + Max selectable date range
  • 🏷 Supports rich marked dates
  • ⚡ Smooth interactions
  • 🧩 Fully customizable (passes props to react-native-calendars)

📝 Notes

  • Always provide date strings in YYYY-MM-DD format.
  • This component wraps react-native-calendars for easier UI consistency.
  • Works in both Android and iOS.
  • Compatible with JavaScript & TypeScript.

👤 Author Avi Gupta