Skip to content

Commit

Permalink
disable touch on week numbers
Browse files Browse the repository at this point in the history
rghorbani committed Mar 15, 2018
1 parent 66c6da9 commit fbc3ad6
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-general-calendars",
"version": "1.0.2",
"description": "React Native Calendar Components",
"version": "1.0.3",
"description": "React Native Calendar Components With support of Gregorian & Jalaali",
"main": "src/index.js",
"scripts": {
"start": "watchman watch-del-all && react-native start",
@@ -36,7 +36,7 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/rghorbani/react-native-common/issues"
"url": "https://github.com/rghorbani/react-native-general-calendars/issues"
},
"dependencies": {
"moment": "^2.21.0",
@@ -67,7 +67,7 @@
"/node_modules/"
]
},
"homepage": "https://github.com/rghorbani/react-native-common",
"homepage": "https://github.com/rghorbani/react-native-general-calendars",
"contributors": [
{
"name": "rghorbani",
@@ -76,6 +76,6 @@
],
"repository": {
"type": "git",
"url": "https://github.com/rghorbani/react-native-common"
"url": "https://github.com/rghorbani/react-native-general-calendars"
}
}
2 changes: 1 addition & 1 deletion src/calendar/index.js
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@ class Calendar extends React.Component {
}

renderWeekNumber (weekNumber) {
return <Day key={`week-${weekNumber}`} type={this.props.type} theme={this.props.theme} state="disabled">{weekNumber}</Day>;
return <Day key={`week-${weekNumber}`} type={this.props.type} theme={this.props.theme} marking={{disableTouchEvent: true}} state="disabled">{weekNumber}</Day>;
}

renderWeek(days, id) {

0 comments on commit fbc3ad6

Please sign in to comment.