react-native-big-calendar
react-native-big-calendar copied to clipboard
How to disable clickevent actions of the next month starting dates in current month
Need to disable event press actions on the next month's dates in the current month.
Currently not possible. Feel free to open a pull request.
Hey @acro5piano What do you think about this feature? I will take a look if it feels worth it.
@charithAmila I think you can hide next month's events by adding a filtering logic. However, if it does not satisfy your needs, please go ahead! Thanks
We can add a prop for disabling event-clicking so users can disable their events as they need.
interface ICalendarEventBase {
start: Date;
end: Date;
title: string;
children?: ReactElement | null;
hideHours?: boolean;
disabled?: boolean; // <-- disabled prop
}
That sounds good!
@acro5piano PR is ready for review. https://github.com/acro5piano/react-native-big-calendar/pull/938
@charithAmila Thanks! Released on v4.5.0