Skip to content

Commit 24ce7e8

Browse files
authored
README updated for multi color selected days.
1 parent 2a71cfd commit 24ce7e8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,24 @@ LocaleConfig.defaultLocale = 'fr';
103103
showWeekNumbers={true}
104104
/>
105105
```
106+
#### Multi Date Selection
107+
<kbd>
108+
<img height=50 src="https://github.com/wix-private/wix-react-native-calendar/blob/master/demo/multi-select.png?raw=true">
109+
</kbd>
110+
111+
```javascript
112+
<Calendar
113+
// Collection of dates that have to be marked. Default = {}
114+
markedDates={{
115+
'2018-01-16': {selected: true, selectedColor:'red'},
116+
'2018-01-17': {selected: true, selectedColor:'green'},
117+
'2018-01-18': {selected: true},
118+
'2018-01-19': {selected: true, selectedColor:'yellow'}
119+
}}
120+
/>
121+
```
122+
You can customise a selected day background color for each day independently. If `selectedColor` property not available, it will take the default background color.
123+
106124

107125
#### Date marking
108126

0 commit comments

Comments
 (0)