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.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
increased by15.82%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Calendar 📆

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"
  theme={{
    weekColumnTextStyle: {
      color: 'red',
    },
    weekColumnStyle: {
      paddingVertical: 20,
    },
    weekColumnsContainerStyle: {
      backgroundColor: 'lightgrey',
    },
    monthTitleStyle: {
      color: 'blue',
    },
    nonTouchableDayContainerStyle: {
      backgroundColor: 'red',
    },
    nonTouchableDayTextStyle: {
      color: 'green',
    },
    dayTextStyle: {
      color: 'blue',
    },
    activeDayContainerStyle: {
      backgroundColor: 'lightgrey',
    },
    activeDayTextStyle: {
      color: 'red',
    },
  }}
/>

API

PropDescriptionRequired?Default
onChangeCallback called when a day is pressed.yes
minDateMinimum date that can be selected.nonull
maxDateMaximum date that can be selected.nonull
startDateSelected start datenonull
endDateSelected end daterequires startDatenull
themeCalendar StyleSheetnonull
localeCalendar languageno'en'
showWeekdaysShow Week columnsnotrue
showMonthTitleShow Month titlenotrue
initialListSizeFlatList initialNumToRenderno2
startingMonthFirst month to rendernocurrent month
numberOfMonthsNumber of months to renderno12
disableRangeTurn off range date selectionnofalse
monthHeightChange Month row heightno370

Example

To run the example project change package.json main path to like this

"main": "lib/index.js",

License

MIT

Keywords

FAQs

Package last updated on 16 May 2018

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