Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rghorbani committed Mar 25, 2018
1 parent 893d9db commit e69aa60
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ Multi-Dot marking

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.
```javascript
const vacation = {key:'vacation', color: 'red'};
const massage = {key:'massage', color: 'blue'};
const vacation = {key:'vacation', color: 'red', selectedDotColor: 'blue'};
const massage = {key:'massage', color: 'blue', selectedDotColor: 'blue'};
const workout = {key:'workout', color: 'green'};

<Calendar
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-general-calendars",
"version": "1.0.5",
"version": "1.0.6",
"description": "React Native Calendar Components with support of Gregorian & Jalaali Calendars",
"main": "src/index.js",
"scripts": {
Expand All @@ -21,14 +21,16 @@
"react-native",
"react-native-common",
"react-native-general-calendars",
"calendars",
"moment-jalaali",
"moment",
"calendars",
"gregorian",
"jalaali",
"hijri",
"persian",
"moment",
"ios",
"android"
"android",
"windows"
],
"author": {
"name": "Reza Ghorbani",
Expand All @@ -42,7 +44,7 @@
"moment": "^2.21.0",
"moment-jalaali": "^0.7.2",
"prop-types": "~15.6.0",
"react-native-common": "^0.16.0"
"react-native-common": "^0.17.2"
},
"devDependencies": {
"babel-cli": "~6.26.0",
Expand Down
4 changes: 2 additions & 2 deletions src/calendar/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CalendarHeader extends React.Component {
<View style={this.style.header}>
{leftArrow}
<View style={{ flexDirection: 'row' }}>
<Text allowFontScaling={false} style={this.style.monthText}>
<Text allowFontScaling={false} style={this.style.monthText} accessibilityTraits="header">
{this.props.month.format(this.props.monthFormat)}
</Text>
{indicator}
Expand All @@ -133,7 +133,7 @@ class CalendarHeader extends React.Component {
<View style={this.style.week}>
{this.props.weekNumbers && <Text allowFontScaling={false} style={this.style.dayHeader}></Text>}
{weekDaysNames.map((day, idx) => (
<Text allowFontScaling={false} key={idx} style={this.style.dayHeader} numberOfLines={1}>{day}</Text>
<Text allowFontScaling={false} key={idx} accessible={false} style={this.style.dayHeader} numberOfLines={1}>{day}</Text>
))}
</View>
}
Expand Down

0 comments on commit e69aa60

Please sign in to comment.