react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Anyway to not make Agenda week start from Sunday?

Open guanw opened this issue 6 years ago • 2 comments

Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.

Description

I'm trying to customize Agenda component and wonder if there's anyway to pass the start date for the week row in Agenda. Currently it always starts from Sunday. But in our case we want it to be able to start on arbitrary day.

Example we have: image

Expected Behavior

The week row could start from any other day (e.g Monday, Tuesday, etc)

guanw avatar Feb 18 '20 19:02 guanw

Try firstDay, If firstDay=1 week starts from Monday. Note that dayNames and dayNamesShort should still start from Sunday.

firstDay: PropTypes.number

shabnam701 avatar Feb 19 '20 05:02 shabnam701

@shabnam701 IC. I guess the readme is kind of outdated then. I will try that out. Thx.

guanw avatar Feb 19 '20 14:02 guanw