You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Disable all touch events for disabled days. can be override with disableTouchEvent in markedDates
114
114
disableAllTouchEventsForDisabledDays={true}
115
-
// Replace default month and year title with custom one. the function receive a date as parameter.
115
+
// Replace default month and year title with custom one. the function receive a date as parameter
116
116
renderHeader={(date) => {/*Return JSX*/}}
117
117
// Enable the option to swipe between months. Default = false
118
118
enableSwipeMonths={true}
@@ -151,20 +151,20 @@ Multi-Dot marking
151
151
</kbd>
152
152
<p></p>
153
153
154
-
Use `markingType={'multi-dot'}` if you want to display more than one dot. Both the `<Calendar/>` and `<CalendarList/>` support multiple dots by using `dots` array in `markedDates` prop.
154
+
Use `markingType={'multi-dot'}` if you want to display more than one dot. Both the `<Calendar/>` and `<CalendarList/>` support multiple dots by using `dots` array in `markedDates` prop.
155
155
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.
If you want to have complete control over the calendar styles you can do it by overriding default `style.js` files. For example, if you want to override `<CalendarHeader/>` style first you have to find stylesheet id for this file:
347
+
If you want to have complete control over the calendar styles you can do it by overriding default `style.ts` files. For example, if you want to override `<CalendarHeader/>` style first you have to find stylesheet id for this file:
// When `true` and `hideKnob` prop is `false`, the knob will always be visible and the user will be able to drag the knob up and close the calendar. Default = false
520
+
showClosingKnob={false}
523
521
// By default, agenda dates are marked if they have at least one item, but you can override this if needed
524
522
markedDates={{
525
523
'2012-05-16': {selected:true, marked:true},
@@ -528,11 +526,11 @@ An advanced `Agenda` component that can display interactive listings for calenda
528
526
}}
529
527
// If disabledByDefault={true} dates flagged as not disabled will be enabled. Default = false
530
528
disabledByDefault={true}
531
-
// If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make sure to also set the refreshing prop correctly.
529
+
// If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make sure to also set the refreshing prop correctly
532
530
onRefresh={() =>console.log('refreshing...')}
533
531
// Set this true while waiting for new data from a refresh
534
532
refreshing={false}
535
-
// Add a custom RefreshControl component, used to provide pull-to-refresh functionality for the ScrollView.
533
+
// Add a custom RefreshControl component, used to provide pull-to-refresh functionality for the ScrollView
536
534
refreshControl={null}
537
535
// Agenda theme
538
536
theme={{
@@ -556,6 +554,8 @@ See also the list of [contributors](https://github.com/wix/react-native-calendar
556
554
557
555
## Contributing
558
556
559
-
Pull requests are most welcome!
557
+
Pull requests are most welcome!
560
558
Please `npm run test` and `npm run lint` before push.
561
-
Don't forget to add a **title** and a **description** that explain the issue you're trying to solve and your suggested solution. Screenshots and gifs are very helpful.
559
+
Don't forget to add a **title** and a **description** that explain the issue you're trying to solve and your suggested solution.
560
+
Screenshots and gifs are VERY helpful.
561
+
Please do NOT format the files as we are trying to keep a unified syntax and the reviewing process fast and simple.
0 commit comments