UNPKG

react-native-plain-calendar

Version:
25 lines (24 loc) 1.09 kB
import * as React from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { HeaderButtonComponentProps } from './HeaderButton'; export interface HeaderComponentProps { currentMonth: string; onPrevMonth(): void; onNextMonth(): void; } export interface HeaderProps { headerDateFormat: string; headerContainerStyle?: StyleProp<ViewStyle>; headerTitleStyle?: StyleProp<TextStyle>; headerButtonStyle?: StyleProp<ViewStyle>; HeaderComponent?: React.FunctionComponent<HeaderComponentProps> | null; HeaderButtonComponent?: React.FunctionComponent<HeaderButtonComponentProps> | null; } interface HeaderPrivateProps extends HeaderProps { currentMonth: Date; onPrevMonth(): void; onNextMonth(): void; } declare function Header({ onPrevMonth, currentMonth, onNextMonth, headerDateFormat, headerContainerStyle, headerTitleStyle, headerButtonStyle, HeaderComponent, HeaderButtonComponent, }: HeaderPrivateProps): JSX.Element; declare const HeaderMemo: React.MemoExoticComponent<typeof Header>; export { HeaderMemo as Header };