Skip to main content

Type alias: FocusContextValue

Ƭ FocusContextValue: Object

Represents the value of the NavigationContext.

Type declaration

NameTypeDescription
focusTargetDate | undefinedDay that will be focused.
focusedDayDate | undefinedThe day currently focused.
blur() => voidBlur the focused day.
focus(day: Date) => voidFocus a day.
focusDayAfter() => voidFocus the day after the focused day.
focusDayBefore() => voidFocus the day before the focused day.
focusEndOfWeek() => void-
focusMonthAfter() => void-
focusMonthBefore() => void-
focusStartOfWeek() => void-
focusWeekAfter() => voidFocus the day in the week after the focused day.
focusWeekBefore() => voidFocus the day in the week before the focused day.
focusYearAfter() => void-
focusYearBefore() => void-

Defined in

contexts/Focus/FocusContext.tsx:15