react-native-persian-calendar-modal
Version:
Persian Calendar Modal Component for React Native
44 lines (40 loc) • 832 B
JavaScript
/**
* Persian Calendar Picker Component
*
* Copyright 2016 Reza (github.com/rghorbani)
* Licensed under the terms of the MIT license. See LICENSE file in the project root for terms.
*/
;
const jMoment = require('moment-jalaali');
module.exports = {
START_DATE: 'START_DATE',
END_DATE: 'END_DATE',
WEEKDAYS: [
'شنبه',
'یکشنبه',
'دوشنبه',
'سه شنبه',
'چهارشنبه',
'پنج شنبه',
'جمعه',
],
MONTHS: [
'فروردین',
'اردیبهشت',
'خرداد',
'تیر',
'مرداد',
'شهریور',
'مهر',
'آبان',
'آذر',
'دی',
'بهمن',
'اسفند',
],
MAX_ROWS: 7,
MAX_COLUMNS: 7,
getDaysInMonth: function(month, year) {
return jMoment.jDaysInMonth(year, month);
},
};