Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/DateTimePickerModal.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DateTimePickerModal = memo(
onCancel,
onConfirm,
onHide = () => { },
firstDayOfWeek = 0,
...otherProps
}) => {
const currentDateRef = useRef(date);
Expand Down Expand Up @@ -80,6 +81,7 @@ DateTimePickerModal.propTypes = {
onHide: PropTypes.func,
maximumDate: PropTypes.instanceOf(Date),
minimumDate: PropTypes.instanceOf(Date),
firstDayOfWeek: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),
};

export { DateTimePickerModal };
5 changes: 5 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ export interface DateTimePickerProps {
* The style of the picker \ (iOS)
*/
pickerStyleIOS?: ViewStyle;

/**
* Sets the first day of the week shown in the calendars
*/
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
}

type NativePickerProps =
Expand Down