react-native-easy-calendar
react-native-easy-calendar copied to clipboard
Support for weekStart and dayjs().weekday()
Hi, I'm using your calendar in one of my projects and it works great! It's fast and easy to use. Hovewer, I have small feature request.
Currently, the calendar shows weeks starting on Sunday, which is default behavior for dayjs without plugins.
However, dayjs supports weekStart option (in locale configuration - https://github.com/iamkun/dayjs/issues/215) and locale aware weekday (https://day.js.org/docs/en/get-set/weekday).
Is is possible to add support for Weekday plugin and customize the start and the end of the week? It might be enough to setup the plugin and change day.day()
to day.weekday()
Currently, in my project I have week view (my own implementation using dayjs) and month view (using your calendar). In week view I'm starting the week on Monday (using Weekday plugin and dayjs().weekday()
) and I'd like to have both views working as similarly as possible.
Best regards!
Hello @Vakme! Let me take a look at the best way to extend the calendar's API to make this possible 😁 Shouldn't be a very difficult adjustment, I'll keep you posted.