All Projects → netyouli → react-native-whc-calendar

netyouli / react-native-whc-calendar

Licence: MIT license
A react native module to show calendar, it works on iOS and Android. 跨平台日历组件支持iOS、Android

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-whc-calendar

GCCalendar
A customizable calendar view for iOS 9+ written in Swift.
Stars: ✭ 53 (+89.29%)
Mutual labels:  calendar
THCalendar
Calendar like iOS
Stars: ✭ 21 (-25%)
Mutual labels:  calendar
calendar-iOS
Appointment Scheduling Calendar
Stars: ✭ 28 (+0%)
Mutual labels:  calendar
Android-Alarm
This repository is an Alarm application, demonstrate how to use multiple pending intent to set alarm's time wake up. use popup menu, RecyclerView Adapter, use SQLite to store data
Stars: ✭ 25 (-10.71%)
Mutual labels:  calendar
aircal
Visualize Airflow's schedule by exporting future DAG runs as events to Google Calendar.
Stars: ✭ 66 (+135.71%)
Mutual labels:  calendar
RaspberryPi-WeatherStation
7.5 ePaper Waveshare Outlook WeatherStation 墨水屏台历
Stars: ✭ 30 (+7.14%)
Mutual labels:  calendar
react-native-whc-loading
A react native module to show loading ui, it works on iOS and Android.
Stars: ✭ 32 (+14.29%)
Mutual labels:  whc
reactjs-calendar-heatmap
React component for d3.js calendar heatmap graph
Stars: ✭ 128 (+357.14%)
Mutual labels:  calendar
SUCAL
Sorbonne Université calendar
Stars: ✭ 14 (-50%)
Mutual labels:  calendar
Almanac
Almanac 历
Stars: ✭ 31 (+10.71%)
Mutual labels:  calendar
UltraWeekCalendar
UltraWeekCalendar - Clean UI to select day through weeks
Stars: ✭ 29 (+3.57%)
Mutual labels:  calendar
ical
📅 Golang iCalendar lexer/parser implementing RFC 5545
Stars: ✭ 28 (+0%)
Mutual labels:  calendar
react-calendar
A Calendar made with React and Redux with reminders and different months
Stars: ✭ 35 (+25%)
Mutual labels:  calendar
lunar-typescript
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
Stars: ✭ 62 (+121.43%)
Mutual labels:  calendar
seek-meetup
收集台灣各地的前端活動!好聚好善!
Stars: ✭ 30 (+7.14%)
Mutual labels:  calendar
kalendar
📅This is a lib for creating calendars
Stars: ✭ 12 (-57.14%)
Mutual labels:  calendar
shamsi date
A Flutter and Dart package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) date and times.
Stars: ✭ 59 (+110.71%)
Mutual labels:  calendar
simple-d3-heatmap
A javascript module to create heatmap calendars
Stars: ✭ 24 (-14.29%)
Mutual labels:  calendar
every2cal
🙌에브리타임 캘린더를 ics파일로 바꿔줍니다
Stars: ✭ 33 (+17.86%)
Mutual labels:  calendar
chinese-calendar
🔖 Chinese calendar control in C#
Stars: ✭ 22 (-21.43%)
Mutual labels:  calendar

react-native-whc-calendar

A react native module to show calendar, it works on iOS and Android.

release PRs Welcome NPM version License MIT 语言 中文

Content

Installation

  • 1.Run npm install react-native-whc-calendar --save
  • 2.import Calendar from 'react-native-whc-calendar'

Demo

Getting started

Add react-native-whc-calendar to your js file.

import Calendar from 'react-native-whc-calendar'

Inside your component's render method, use Calendar:

 render() {
         return (
             <Calendar
                 days={30}
             />
         );
 }

Basic usage

render() {
        return (
           <Calendar
               days={30}
               onSelectedDateBlock={(s,e) => {
                  /// 返回选择的日期
               }
           }/>
        );
    }

API

Props Type Optional Default Description
days PropTypes.number true 0 Specified date days
months PropTypes.number true 0 Specified date months
startYear PropTypes.number true 0 Specified date start year
endYear PropTypes.number true 0 Specified date end year
startDateStr PropTypes.string true null default choice start date
endDateStr PropTypes.string true null default choice end date
startSelectedHint PropTypes.string true null default choice start date hint
endSelectedHint PropTypes.string true null default choice end date hint
onSelectedDateBlock PropTypes.func true null choice date callback func
selectedColor PropTypes.string true null default choice date back color
selectedMidColor PropTypes.string true null default choice min date back color
selectedTextColor PropTypes.string true null default choice date text color
highlightColor PropTypes.string true null default date holiday color
enableSingleChoice PropTypes.bool true false enable single one date
invalidDateNotSelected PropTypes.bool true true default not choice invalid date

Contribution

Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.

Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first.


MIT Licensed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].