Socket
Socket
Sign inDemoInstall

@zoraomio/react-native-calendario

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zoraomio/react-native-calendario

React Native Calendar


Version published
Weekly downloads
3.3K
decreased by-20.96%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

PropDescriptionRequired?DefaultType
onChange (deprecated)Callback called when a day is pressed.noFunction
onPressCallback called when a day is pressed.yes(Date) => void
minDateMinimum date that can be selected.nonullDate
maxDateMaximum date that can be selected.nonullDate
startDateSelected start datenonullDate
endDateSelected end daterequires startDatenullDate
themeCalendar StyleSheetnonullThemeType
localeCalendar languagees, en, fr, br'en'LocaleType
dayNamesArray of day namesno[]string[]
monthNamesArray of names of each mono[]string[]
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
markedDaysMulti-dot support on Day componentnoundefinedMarkedDays
disabledDaysDisabled daysnonull{[string]: any }
renderDayContentRender custom Day contentnonullFunction
renderAllMonthsUse this for web, render all monthsnonullboolean
viewableItemsChangedhandleViewableItemsChange callbacknonullFunction
disableOffsetDaysRemove offset Days.nofalseboolean

License

MIT

Keywords

FAQs

Last updated on 11 Jul 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc