Skip to content

Commit e69aa60

Browse files
committed
fixed bugs
1 parent 893d9db commit e69aa60

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ Multi-Dot marking
129129

130130
Use markingType = 'multi-dot' if you want to display more than one dot. Both the Calendar and CalendarList control support multiple dots by using 'dots' array in markedDates. 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.
131131
```javascript
132-
const vacation = {key:'vacation', color: 'red'};
133-
const massage = {key:'massage', color: 'blue'};
132+
const vacation = {key:'vacation', color: 'red', selectedDotColor: 'blue'};
133+
const massage = {key:'massage', color: 'blue', selectedDotColor: 'blue'};
134134
const workout = {key:'workout', color: 'green'};
135135

136136
<Calendar

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-general-calendars",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "React Native Calendar Components with support of Gregorian & Jalaali Calendars",
55
"main": "src/index.js",
66
"scripts": {
@@ -21,14 +21,16 @@
2121
"react-native",
2222
"react-native-common",
2323
"react-native-general-calendars",
24-
"calendars",
24+
"moment-jalaali",
2525
"moment",
26+
"calendars",
2627
"gregorian",
2728
"jalaali",
29+
"hijri",
2830
"persian",
29-
"moment",
3031
"ios",
31-
"android"
32+
"android",
33+
"windows"
3234
],
3335
"author": {
3436
"name": "Reza Ghorbani",
@@ -42,7 +44,7 @@
4244
"moment": "^2.21.0",
4345
"moment-jalaali": "^0.7.2",
4446
"prop-types": "~15.6.0",
45-
"react-native-common": "^0.16.0"
47+
"react-native-common": "^0.17.2"
4648
},
4749
"devDependencies": {
4850
"babel-cli": "~6.26.0",

src/calendar/header/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class CalendarHeader extends React.Component {
121121
<View style={this.style.header}>
122122
{leftArrow}
123123
<View style={{ flexDirection: 'row' }}>
124-
<Text allowFontScaling={false} style={this.style.monthText}>
124+
<Text allowFontScaling={false} style={this.style.monthText} accessibilityTraits="header">
125125
{this.props.month.format(this.props.monthFormat)}
126126
</Text>
127127
{indicator}
@@ -133,7 +133,7 @@ class CalendarHeader extends React.Component {
133133
<View style={this.style.week}>
134134
{this.props.weekNumbers && <Text allowFontScaling={false} style={this.style.dayHeader}></Text>}
135135
{weekDaysNames.map((day, idx) => (
136-
<Text allowFontScaling={false} key={idx} style={this.style.dayHeader} numberOfLines={1}>{day}</Text>
136+
<Text allowFontScaling={false} key={idx} accessible={false} style={this.style.dayHeader} numberOfLines={1}>{day}</Text>
137137
))}
138138
</View>
139139
}

0 commit comments

Comments
 (0)