1.0.2 • Published 3 years ago

react-native-persian-jalali-calendar-picker v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React Native Persian Jalali Calendar Picker 📆

npm bundle size npm npm npm Cirrus CI - Base Branch Build Status GitHub issues

Jalali Calendar Picker component for react native.

Installation

$ npm install --save react-native-persian-jalali-calendar-picker
$ npm install --save moment-jalaali

Usage

import JalaliCalendarPicker from 'react-native-persian-jalali-calendar-picker';
<JalaliCalendarPicker onDateChange={date => console.log(date) }/>

Properties

Note: Other properties will be passed down to underlying component.

PropDescriptionDefault
styleWrapStyle for wrap ViewNone
headerStyleWrapStyle for header wrap ViewNone
headerStyleTextStyle for header wrap TextNone
headerStyleWrapCenterStyle for header wrap View centerNone
headerStyleTextCenterStyle for header wrap Text centerNone
weekStyleWrapStyle for week wrap ViewNone
weekStyleTextStyle for week wrap TextNone
maxYMaximum selected year1400
minYMinimum selected year ex:1400current
TimeTime feature on or offfalse
primaryColorPrimary Color#2980b9
selectedDate selected (format : jYYYY/jMM/jDD)None
currentTimeTime selected (format : HH:mm)00:00
minMinimum selected date (format : jYYYY/jMM/jDD)None
onDateChangeCallback selected date and time (format : jYYYY/jMM/jDD HH:mm)None

Preview