Skip to content

Commit 0427548

Browse files
author
Tautvilas Mecinskas
committed
add selected color
1 parent b6e9079 commit 0427548

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,6 @@ 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-
124106

125107
#### Date marking
126108

@@ -136,7 +118,7 @@ Dot marking
136118
<Calendar
137119
// Collection of dates that have to be marked. Default = {}
138120
markedDates={{
139-
'2012-05-16': {selected: true, marked: true},
121+
'2012-05-16': {selected: true, marked: true, selectedColor: 'blue'},
140122
'2012-05-17': {marked: true},
141123
'2012-05-18': {marked: true, dotColor: 'red', activeOpacity: 0},
142124
'2012-05-19': {disabled: true, disableTouchEvent: true}

demo/multi-select.png

-10.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)