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

@bertsky/react-native-just-calendar

v2.4.0

Published

A simple and lightweight React Native library with Calendar component, optimized for marking dates.

Readme

@bertsky/react-native-just-calendar 📅

A lightweight and customizable calendar component for React Native.

Benefits ✨

  • Pure JavaScript: No native code dependencies, making it easy to integrate and compatible with any React Native environment.
  • Optimized for Performance: Smooth month scrolling and efficient handling of markings.
  • Customizable Markings: Easily add, update, and remove day markings for events, appointments, or highlights.

Installation 🚀

To install the package, use npm or yarn:

npm install @bertsky/react-native-just-calendar

or

yarn add @bertsky/react-native-just-calendar

Usage 📖

Here's an example of how to use the Calendar component:

import { View } from 'react-native';
import { Calendar, Markings } from '@bertsky/react-native-just-calendar';
import { useCallback, useState } from 'react';
import { deleteAt } from 'fp-ts/Record';
import i18n from './i18n'; // Your i18n configuration file

export default function App() {
  const [markings, setMarkings] = useState<Markings>({});

  const onDayPress = useCallback((key: string) => {
    setMarkings(
      (prev) =>
        prev[key]
          ? deleteAt(key)(prev) // Remove the marking if it already exists
          : { ...prev, [key]: { color: 'green' } }, // Add a new marking
    );
  }, []);

  return (
    <View>
      <Calendar onDayPress={onDayPress} markings={markings} i18n={i18n} />
    </View>
  );
}

Props ⚙️

  • onDayPress: (key: DateKey) => void
    Callback triggered when a day is pressed. Use it to handle marking or unmarking days.

  • markings: Markings
    An object defining the markings for each day. Keys are day strings (e.g., "2024-12-21"), and values define the marking style (e.g., { color: "green" }).

  • i18n: object
    An object to customize calendar localization, such as month names, day names, or any other text.

  • initialMonth: DateKey A day string with a month to display on first render.


Features 🌟

  • Smooth Month Navigation: Easily scroll between months with a swipe gesture.
  • Customizable Styles: Personalize the calendar appearance to fit your app's theme.
  • Localization Support: Pass your custom i18n configuration for multi-language support.

Contributing 🤝

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.


License 📝

MIT