react-native-switch-month-week
Version:
react native calendar with a week and month view
65 lines (61 loc) • 2.83 kB
text/typescript
export const todayString = 'today';
export enum UpdateSources {
CALENDAR_INIT = "calendarInit",
TODAY_PRESS = "todayPress",
LIST_DRAG = "listDrag",
DAY_PRESS = "dayPress",
PAGE_SCROLL = "pageScroll",
WEEK_SCROLL = "weekScroll",
PROP_UPDATE = "propUpdate"
}
// default values for app style (see all options for theme type in types.ts)
const FOREGROUND_COLOR = 'white';
const DEFAULT_TEXT_COLOR = '#2d4150';
const SECONDARY_TEXT_COLOR = '#00BBF2';
const AGENDA_TEXT_COLOR = '#7a92a5';
const AGENDA_BG_COLOR = '#f2F4f5';
const DISABLED_COLOR = '#d9e1e8';
export const textDayFontFamily = 'System';
export const textMonthFontFamily = 'System';
export const textDayHeaderFontFamily = 'System';
export const todayButtonFontFamily = 'System';
export const textDayFontWeight = '300';
export const textMonthFontWeight = '300';
export const textDayHeaderFontWeight = undefined;
export const todayButtonFontWeight = '600';
export const textDayFontSize = 16;
export const textMonthFontSize = 16;
export const textDayHeaderFontSize = 13;
export const todayButtonFontSize = 14;
export const textDayStyle = undefined;
export const dotStyle = undefined;
export const arrowStyle = undefined;
export const calendarBackground = FOREGROUND_COLOR;
export const textSectionTitleColor = '#b6c1cd';
export const textSectionTitleDisabledColor = DISABLED_COLOR;
export const selectedDayBackgroundColor = SECONDARY_TEXT_COLOR;
export const selectedDayTextColor = FOREGROUND_COLOR;
export const todayBackgroundColor = undefined;
export const todayTextColor = SECONDARY_TEXT_COLOR;
export const dayTextColor = DEFAULT_TEXT_COLOR;
export const textDisabledColor = DISABLED_COLOR;
export const textInactiveColor = DISABLED_COLOR;
export const dotColor = SECONDARY_TEXT_COLOR;
export const selectedDotColor = FOREGROUND_COLOR;
export const disabledDotColor = undefined;
export const inactiveDotColor = undefined;
export const todayDotColor = undefined;
export const arrowColor = SECONDARY_TEXT_COLOR;
export const disabledArrowColor = DISABLED_COLOR;
export const monthTextColor = DEFAULT_TEXT_COLOR;
export const indicatorColor = undefined; // use the default color of React Native ActivityIndicator
export const agendaDayTextColor = AGENDA_TEXT_COLOR;
export const agendaDayNumColor = AGENDA_TEXT_COLOR;
export const agendaTodayColor = SECONDARY_TEXT_COLOR;
export const agendaKnobColor = AGENDA_BG_COLOR;
export const expandableKnobColor = '#e8ecf0';
export const backgroundColor = AGENDA_BG_COLOR; // Agenda's reservations bg color - renamed: 'reservationsBackgroundColor'. TODO: remove in V2
export const reservationsBackgroundColor = AGENDA_BG_COLOR;
export const todayButtonTextColor = SECONDARY_TEXT_COLOR;
export const todayButtonPosition = undefined; // right' / 'left'(default)
export const weekVerticalMargin = 7;