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

v3.5.1

Published

React Native Calendar

Downloads

7,385

Readme

React Native Calendar 📆

Coverlogo

BuildStatus NPM version npm CodeFactor Codacy Badge PRs Welcome

Installation

npm install react-native-calendario --save

Using yarn

yarn add react-native-calendario

Usage

import { Calendar } from 'react-native-calendario';
<Calendar
  onChange={(range) => console.log(range)}
  minDate={new Date(2018, 3, 20)}
  startDate={new Date(2018, 3, 30)}
  endDate={new Date(2018, 4, 5)}
  theme={{
    activeDayColor: {},
    monthTitleTextStyle: {
      color: '#6d95da',
      fontWeight: '300',
      fontSize: 16,
    },
    emptyMonthContainerStyle: {},
    emptyMonthTextStyle: {
      fontWeight: '200',
    },
    weekColumnsContainerStyle: {},
    weekColumnStyle: {
      paddingVertical: 10,
    },
    weekColumnTextStyle: {
      color: '#b6c1cd',
      fontSize: 13,
    },
    nonTouchableDayContainerStyle: {},
    nonTouchableDayTextStyle: {},
    startDateContainerStyle: {},
    endDateContainerStyle: {},
    dayContainerStyle: {},
    dayTextStyle: {
      color: '#2d4150',
      fontWeight: '200',
      fontSize: 15,
    },
    dayOutOfRangeContainerStyle: {},
    dayOutOfRangeTextStyle: {},
    todayContainerStyle: {},
    todayTextStyle: {
      color: '#6d95da',
    },
    activeDayContainerStyle: {
      backgroundColor: '#6d95da',
    },
    activeDayTextStyle: {
      color: 'white',
    },
    nonTouchableLastMonthDayTextStyle: {},
  }}
/>

API

| Prop | Description | Required? | Default | Type | | --------------------------- | -------------------------------------- | -------------------- | ------------- | ---------------- | | onChange (deprecated) | Callback called when a day is pressed. | no | | Function | | onPress | Callback called when a day is pressed. | yes | | (Date) => void | | minDate | Minimum date that can be selected. | no | null | Date | | maxDate | Maximum date that can be selected. | no | null | Date | | startDate | Selected start date | no | null | Date | | endDate | Selected end date | requires startDate | null | Date | | theme | Calendar StyleSheet | no | null | ThemeType | | locale | Calendar language | es, en, fr, br | 'en' | LocaleType | | dayNames | Array of day names | no | [] | string[] | | monthNames | Array of names of each mo | no | [] | string[] | | showWeekdays | Show Week columns | no | true | boolean | | showMonthTitle | Show Month title | no | true | boolean | | initialListSize | FlatList initialNumToRender | no | 2 | number | | startingMonth | First month to render | no | current month | 'YYYY-MM-DD' | | numberOfMonths | Number of months to render | no | 12 | number | | disableRange | Turn off range date selection | no | false | boolean | | firstDayMonday | Monday as first day of the week | no | false | boolean | | monthHeight | Change Month row height | no | 370 | number | | markedDays | Multi-dot support on Day component | no | undefined | MarkedDays | | disabledDays | Disabled days | no | null | {[string]: any } | | renderDayContent | Render custom Day content | no | null | Function | | renderAllMonths | Use this for web, render all months | no | null | boolean | | viewableItemsChanged | handleViewableItemsChange callback | no | null | Function | | disableOffsetDays | Remove offset Days. | no | false | boolean |

License

MIT