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

react-native-calendar-list

v1.0.1

Published

A cross platform optimized customizable CalendarList component for React Native

Downloads

26

Readme

Build Status npm version

react-native-calendar-list

A cross platform optimized customizable CalendarList component for React Native.

NPM

Installation

$ npm install react-native-calendar-list --save

Examples

A light & dark styled version. exmple 1 exmple 2

Also check example app with some calendar styling and behaviour here

Why another calendar list?

Short answer: The most famous react native calendar package out there did has many issues with performance. So this calendar list is optimized for fast renders, fast state update and scrolling experience. It uses Direct Manipulation to avoid reconciliation algorythm from react, this improving performance.

Usage

<CalendarList
        startDate={'2017-02-01'}
        monthsCount={12}
        onDatePress={this.dayPressed}
        initialNumToRender={3}
        rowHeight={40}
        headerHeight={40} />

Props

| Prop | Description | Default | |---|---|---| |startDate| example '2017-10-01'. The day is not important. Calendar will start from this month and year. |None| |monthsCount| How many months to show from the startDate ahead. |None| |mondayWeekStart| This sets the week start on monday. |false| |dayNames| Array of names to override the day names in the week row. Example value: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi','Sa']. Note: Always first item of array is the Sunday name, ignore mondayWeekStart |English names| |monthNames| Array of names to override the month names in the header. Example value: ['Jan', 'Feb', 'Mar','Abr','May','Jun','Jul','Ago', 'Sep','Oct','Nov','Dic']. |English names| |onDatePress| Callback function invoked on a date press. Will call this func with a single parameter, the date in ISO format 'YYYY-MM-DD' |None| |rowHeight| Day Row height. Required to make optimizations. |None| |headerHeight| Month title height. Required to make optimizations. |None| |Styling| |None| |marks| An object with ISO dates as keys to style specific dates. Example: {"2017-02-20": markStyle, "2017-02-01": markStyle }. The expected object in each date is like this: {dayTextStyle: {color: 'white', fontSize: 14, fontWeight: 'bold'}, dayBackgroundColor: '#08a'}. Only the text style and the backgroundColor of the button can be styled. |None| |showVerticalScrollIndicator| VirtualizedList prop |true| |enableAutoScrollOnMonthPress| Makes the month header tappable and performs scroll to the month when tapped. |false| |enableFixVisualLinesArtifacts| Calendar will adjust it's width in order to be multiple of 7 an avoid RN line artifacts. Use it if you see some weird glitching lines in the calendar. |None| |dayBackgroundColor| Day box button background color. |#fff| |headerBackgroundColor| Month header background color |grey| |weekHeaderBoxStyle| week day names box style. |None| |headerTextStyle| Month header text style |None| |weekHeaderTextStyle| Month header background color |None| |dayTextStyle| Day button text style |None| |initialNumToRender| VirtualizedList prop. Tune for required performance. |None|

License

The MIT License.

See LICENSE