You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-37Lines changed: 58 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,22 +15,21 @@ The package is compatible with both **Android** and **iOS**
15
15
16
16
<br>
17
17
18
-
19
-
>### **Official documentation**
18
+
> ### **Official documentation**
19
+
>
20
20
> This README provides basic examples of how to get started with `react-native-calendars`. For detailed information, refer to the [official documentation site](https://wix.github.io/react-native-calendars/docs/intro).
21
21
22
-
23
22
## Features ✨
24
-
* Pure JS. No Native code required
25
-
* Date marking - dot, multi-dot, period, multi-period and custom marking
26
-
* Customization of style, content (days, months, etc) and dates
27
-
* Detailed documentation and examples
28
-
* Swipeable calendar with flexible custom rendering
29
-
* Scrolling to today, selecting dates, and more
30
-
* Allowing or blocking certain dates
31
-
* Accessibility support
32
-
* Automatic date formatting for different locales
33
23
24
+
- Pure JS. No Native code required
25
+
- Date marking - dot, multi-dot, period, multi-period and custom marking
26
+
- Customization of style, content (days, months, etc) and dates
27
+
- Detailed documentation and examples
28
+
- Swipeable calendar with flexible custom rendering
29
+
- Scrolling to today, selecting dates, and more
30
+
- Allowing or blocking certain dates
31
+
- Accessibility support
32
+
- Automatic date formatting for different locales
34
33
35
34
## Try it out ⚡
36
35
@@ -52,63 +51,68 @@ You can check example screens source code in [example module screens](https://gi
52
51
53
52
This project is compatible with Expo/CRNA (without ejecting), and the examples have been [published on Expo](https://expo.io/@community/react-native-calendars-example)
54
53
55
-
56
54
## Getting Started 🔧
57
55
58
56
Here's how to get started with react-native-calendars in your React Native project:
59
57
60
58
### Install the package:
61
59
62
60
Using `npm`:
61
+
63
62
```
64
63
$ npm install --save react-native-calendars
65
64
```
66
65
67
66
Using `Yarn`:
67
+
68
68
```
69
69
$ yarn add react-native-calendars
70
70
```
71
71
72
72
**RN Calendars is implemented in JavaScript, so no native module linking is required.**
73
73
74
74
## Usage 🚀
75
+
75
76
Basic usage examples of the library
76
77
77
78
##### **For detailed information on using this component, see the [official documentation site](https://wix.github.io/react-native-calendars/docs/intro)**
Use `markingType={'multi-dot'}` if you want to display more than one dot. Both the `<Calendar/>` and `<CalendarList/>` support multiple dots by using `dots` array in `markedDates` prop.
286
284
The property `color` is mandatory while `key` and `selectedColor` are optional. If key is omitted then the array index is used as key. If `selectedColor` is omitted then `color` will be used for selected dates.
**CAUTION**: This marking is only fully supported by the `<Calendar/>` component because it expands its height. Usage with `<CalendarList/>` might lead to overflow issues.
328
323
@@ -350,8 +345,7 @@ Multi-period marking
350
345
351
346
Custom marking allows you to customize each marker with custom styles.
The loading indicator next to the month name will be displayed if `<Calendar/>` has `displayLoadingIndicator` prop and the `markedDates` collection does not have a value for every day of the month in question. When you load data for days, just set `[]` or special marking value to all days in `markedDates` collection.
0 commit comments