Skip to content

Commit a13789a

Browse files
committed
Readme has been modified
1 parent 0848708 commit a13789a

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## react-native-calendar
22

3-
A `<Calendar>` component for React Native
3+
It is a modified version of React Native `<Calendar>` component.
44

55
Portrait mode only
66

77
## Installation
88

9-
`npm install react-native-calendar --save`
9+
`npm install AllmaxTeam/react-native-calendar.git --save`
1010

1111
## Usage
1212
```javascript
@@ -28,7 +28,7 @@ Portrait mode only
2828
startDate={'2015-08-01'} // The first month that will display. Default: current month
2929
selectedDate={'2015-08-15'} // Day to be selected
3030
customStyle={{day: {fontSize: 15, textAlign: 'center'}}} // Customize any pre-defined styles
31-
weekStart={1} // Day on which week starts 0 - Sunday, 1 - Monday, 2 - Tuesday, etc, Default: 1
31+
weekStart={7} // Day on which week starts 0 - Sunday, 1 - Monday, 2 - Tuesday, etc, Default: 1
3232
/>
3333
```
3434

@@ -58,12 +58,5 @@ Portrait mode only
5858
- hasEventCircle
5959
- hasEventText
6060

61-
62-
## TODOS
63-
64-
- [ ] Improve swipe feature
65-
- [ ] Landscape support
66-
- [ ] Language Support
67-
6861
## DEMO
6962
![Demo gif](https://github.com/christopherdro/react-native-calendar-swiper/blob/master/demo.gif)

components/Calendar.js

-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ export default class Calendar extends Component {
162162
selectedDayMoment = selectedMoment.date(),
163163
offset = (startOfArgMonthMoment.isoWeekday() - weekStart + 7) % 7;
164164

165-
166-
console.log("HUI", startOfArgMonthMoment.format(), startOfArgPrevMonthMoment.format(), startOfArgNextMonthMoment.format())
167-
168165
const events = (eventDatesMap !== null)
169166
? eventDatesMap[argMoment.startOf('month').format()]
170167
: null;

demo.gif

815 KB
Loading

example/react-native-calendar/components/Calendar.js

-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ export default class Calendar extends Component {
163163
offset = (startOfArgMonthMoment.isoWeekday() - weekStart + 7) % 7;
164164

165165

166-
console.log("HUI", startOfArgMonthMoment.format(), startOfArgPrevMonthMoment.format(), startOfArgNextMonthMoment.format())
167-
168166
const events = (eventDatesMap !== null)
169167
? eventDatesMap[argMoment.startOf('month').format()]
170168
: null;

0 commit comments

Comments
 (0)