react-native-lunar-calendars
Version:
React Native Calendar Components with Lunar Calendar Support - Fork of react-native-calendars with Vietnamese lunar calendar functionality
45 lines (44 loc) • 1.59 kB
TypeScript
export default ReactComp;
declare class ReactComp extends React.Component<any, any, any> {
static propTypes: {
rowHasChanged: PropTypes.Requireable<(...args: any[]) => any>;
renderItem: PropTypes.Requireable<(...args: any[]) => any>;
renderDay: PropTypes.Requireable<(...args: any[]) => any>;
renderEmptyDate: PropTypes.Requireable<(...args: any[]) => any>;
onDayChange: PropTypes.Requireable<(...args: any[]) => any>;
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
reservations: PropTypes.Requireable<object>;
selectedDay: PropTypes.Requireable<XDate>;
topDay: PropTypes.Requireable<XDate>;
};
constructor(props: any);
styles: any;
state: {
reservations: never[];
};
heights: any[];
selectedDay: any;
scrollOver: boolean;
componentDidMount(): void;
updateDataSource(reservations: any): void;
updateReservations(props: any): void;
componentWillReceiveProps(props: any): void;
onScroll(event: any): void;
onRowLayoutChange(ind: any, event: any): void;
renderRow({ item, index }: {
item: any;
index: any;
}): React.JSX.Element;
getReservationsForDay(iterator: any, props: any): any;
onListTouch(): void;
getReservations(props: any): {
reservations: any[];
scrollPosition: number;
};
render(): any;
list: FlatList<never> | null | undefined;
}
import React from 'react';
import { FlatList } from 'react-native';
import PropTypes from 'prop-types';
import XDate from 'xdate';