react-native-plain-calendar
Version:
Calendar component for React-Native
38 lines (37 loc) • 1.93 kB
TypeScript
import * as React from 'react';
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
export interface DayStyleProps {
todayStyle?: StyleProp<ViewStyle>;
dayStyle?: StyleProp<ViewStyle>;
daySelectedStyle?: StyleProp<ViewStyle>;
daySingleSelectedStyle?: StyleProp<ViewStyle>;
dayStartSelectedStyle?: StyleProp<ViewStyle>;
dayEndSelectedStyle?: StyleProp<ViewStyle>;
dayIntermediateSelectedStyle?: StyleProp<ViewStyle>;
dayDisabledStyle?: StyleProp<ViewStyle>;
dayDisabledParticularStyle?: StyleProp<ViewStyle>;
todayTextStyle?: StyleProp<TextStyle>;
dayTextStyle?: StyleProp<TextStyle>;
daySelectedTextStyle?: StyleProp<TextStyle>;
dayDisabledTextStyle?: StyleProp<TextStyle>;
dayDisabledParticularTextStyle?: StyleProp<TextStyle>;
}
export interface DayComponentProps {
isToday: boolean;
isSelectedDate: boolean;
isSingleSelectedDate: boolean;
isStartSelectedDate: boolean;
isEndSelectedDate: boolean;
isIntermediateSelectedDate: boolean;
isDisabledDate: boolean;
isDisabledParticularDate: boolean;
date: string;
onPress(): void;
}
export interface DayProps extends DayComponentProps, DayStyleProps {
DayComponent?: React.FunctionComponent<DayComponentProps>;
disabledDayPick: boolean;
}
declare function Day({ onPress, isToday, isSelectedDate, isSingleSelectedDate, isStartSelectedDate, isEndSelectedDate, isIntermediateSelectedDate, isDisabledDate, isDisabledParticularDate, date, DayComponent, todayStyle, dayStyle, daySelectedStyle, daySingleSelectedStyle, dayStartSelectedStyle, dayEndSelectedStyle, dayIntermediateSelectedStyle, dayDisabledStyle, dayDisabledParticularStyle, todayTextStyle, dayTextStyle, daySelectedTextStyle, dayDisabledTextStyle, dayDisabledParticularTextStyle, disabledDayPick, }: DayProps): JSX.Element;
declare const DayMemo: React.MemoExoticComponent<typeof Day>;
export { DayMemo as Day };