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-taqweem

v2.2.0

Published

**A dual calendar component (Hijri + Gregorian) for React Native** — minimal, customizable, and theme-ready. Perfect for apps needing culturally-aware calendars, Islamic date pickers, or just modern UX flexibility.

Readme

react-native-taqweem

A dual calendar component (Hijri + Gregorian) for React Native — minimal and customizable.
Perfect for apps needing culturally-aware calendars, Islamic date pickers, or just modern UX flexibility.

🕌 What is “Taqweem”?

The word Taqweem (تقويم) is Arabic for “calendar” or “system of timekeeping.” It refers to how dates are calculated and organized — whether by the moon (Hijri) or the sun (Gregorian). The name reflects the component's purpose: a culturally-aware dual calendar for modern apps.

Features

📆 Calendar Modes

  • ✅ Supports both Hijri and Gregorian calendars
  • ✅ Swappable via calendarMode prop ('hijri' | 'gregorian')

🗓 Date Display & Navigation

  • ✅ Displays correct day grid for the month

  • ✅ Handles adjacent days (padding from prev/next months)

    • Controlled by showAdjacentMonths prop

  • ✅ Month & year header with centered title

  • < and > arrows to navigate months

  • ✅ Arrows auto-hide when min/max bounds are reached

  • ✅ Supports custom header via renderHeader prop


📍 Selection Logic

  • ✅ Allows selecting a single day
  • ✅ Toggles selection on repeat tap
  • ✅ Disables selection of future dates via allowFutureDates prop
  • ✅ Blocks navigation into future if allowFutureDates === false

🔢 Date Limits

  • ✅ Accepts minDate and maxDate as prop to restrict navigation & selection

  • ✅ Defaults to: • minDate: '1400-1' (Hijri) or '1900-1' (Gregorian)

    maxDate: current date + 10 years


📤 Event Emission

  • onDateChange prop to inform parent when a day is selected • Provides:
    • calendarDate: in current calendarMode format
    • gregorianDate: always in 'YYYY-MM-DD'
    • hijriDate: always in 'iYYYY-iM-iD'
    • momentObj: full Moment object

Installation

Install react-native-taqweem with npm

  npm install react-native-taqweem

Usage/Examples

import React from 'react';
import {StyleSheet, View} from 'react-native';
import {Screen} from '@src/components';
import {DualCalendar} from 'react-native-taqweem';

const Home = () => {
  return (
    <Screen>
      <View style={styles.main}>
    //   Default calendar mode is gregorian
        <DualCalendar />
      </View>
    </Screen>
  );
};

export default Home;

You can make the calendarMode as hijri to render Hijri calendar.


<DualCalendar calendarMode="hijri" />

You can configure the theme using calendarTheme prop.


import {CalendarTheme, DualCalendar} from 'react-native-taqweem';
import {useTheme} from '@src/context/theme-context';

const getCalendarThemeStyles = (theme: 'light' | 'dark') =>
  StyleSheet.create<CalendarTheme>({
    calendarView: {
      backgroundColor: theme === 'light' ? '#f8f9fa' : '#212529',
      borderRadius: 16,
    },
	...
	// more configurable properties

const Home = () => {
  const {theme, toggleTheme} = useTheme();
  const calendarTheme = getCalendarThemeStyles(theme);
  return (
    <Screen>
      <Button title="Toggle Theme" onPress={toggleTheme} />
      <View style={styles.main}>
        <DualCalendar calendarTheme={calendarTheme} />
      </View>
    </Screen>
  );
};

You can customize calendar header


 <View style={styles.main}>
        <DualCalendar
          renderHeader={props => <ModernCalendarHeader {...props} />}
          calendarMode={calendarMode}
          calendarTheme={calendarTheme}
        />
 </View>

Screenshots

Gregorian Calendar

Gregorian Calendar

Hijri Calendar

Hijri Calendar

Switch between calendar modes

Hijri Calendar

Configurable Theme and Look

Theme support

Customize Header

Custom Header

Acknowledgements

Built with ❤️ using moment-hijri under the hood, supports localization, RTL, theming, and full date control.

Authors

Contributing

Thank you for your interest in contributing to react-native-taqweem! 🙌

If you’d like to suggest a feature, report a bug, or collaborate in any way —
please feel free to get in touch:

📩 [email protected]

Looking forward to hearing from you!