New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-calendario

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-calendario

React Native Calendar

  • 0.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-19.31%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Calendar 📆

Coverlogo

Greenkeeper badge

BuildStatus NPM version npm CodeFactor Codacy Badge

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="2018-04-20"
  startDate="2018-04-30"
  endDate="2018-05-05"
  disableOffsetDays= {true}
  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

PropDescriptionRequired?DefaultType
onChangeCallback called when a day is pressed.yesFunction
minDateMinimum date that can be selected.nonull'YYYY-MM-DD'
maxDateMaximum date that can be selected.nonull'YYYY-MM-DD'
startDateSelected start datenonull'YYYY-MM-DD'
endDateSelected end daterequires startDatenull'YYYY-MM-DD'
themeCalendar StyleSheetnonullObject
localeCalendar language (esenfrbr)
showWeekdaysShow Week columnsnotrueboolean
showMonthTitleShow Month titlenotrueboolean
initialListSizeFlatList initialNumToRenderno2number
startingMonthFirst month to rendernocurrent month'YYYY-MM-DD'
numberOfMonthsNumber of months to renderno12number
disableRangeTurn off range date selectionnofalseboolean
firstDayMondayMonday as first day of the weeknofalseboolean
monthHeightChange Month row heightno370number
disabledDaysDisabled daysnonull{[string]: any }
renderDayContentRender custom Day contentnonullFunction
extraDataFlatList extraDatanonullany
viewableItemsChangedhandleViewableItemsChange callbacknonullFunction
disableOffsetDaysRemove offset Days.nofalseboolean

License

MIT

Keywords

FAQs

Package last updated on 05 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc