Calendar

View Source

Render days in a calendar to allow users to pick dates easier.

Simple

Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8

Statuses

Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8

Drag to select

Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8

Props

Accepts StackView props.

calendarRefReactRefObject

Gain access to the outer wrapping StackView ref

dateDate

Used to calculate the month and year.

Used to calculate the initial month and year.

The maximum date the calendar can be navigated to.

The minimum date the calendar can be navigated to.

onDateChange(date: Date) => void

Callback when month or year navigation occurs.

onDateSelect(date: Date) => void

Callback when a day is selected.

renderDay(props: Object) => void

Controls rendering of each day. Returns props that should be forwarded to Calendar.Day.

Displays a primary colored circle around the selected date.

size'sm' | 'md' | 'lg'

Sets the size of the calendar by changing cell and font sizes.

weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 6

Determines what day of the week the calendar should start on.