UNPKG

react-native-calendars

Version:
34 lines (33 loc) 1.35 kB
import React from 'react'; import { ViewProps } from 'react-native'; import { Theme, DayState, MarkingTypes, DateData } from '../../../types'; import { MarkingProps } from '../marking'; export interface BasicDayProps extends ViewProps { /** Theme object */ theme?: Theme; /** The Day's state ('selected' | 'disabled' | 'inactive' | 'today' | '') */ state?: DayState; /** The marking object */ marking?: MarkingProps; /** Date marking style ('dot' | 'multi-dot' | 'period' | 'multi-period' | 'custom'). Default = 'dot' */ markingType?: MarkingTypes; /** onPress callback */ onPress?: (date?: DateData) => void; /** onLongPress callback */ onLongPress?: (date?: DateData) => void; /** The date to return from press callbacks */ date?: string; /** Disable all touch events for disabled days (can be override with disableTouchEvent in markedDates) */ disableAllTouchEventsForDisabledDays?: boolean; /** Disable all touch events for inactive days (can be override with disableTouchEvent in markedDates) */ disableAllTouchEventsForInactiveDays?: boolean; /** Accessibility label */ accessibilityLabel?: string; /** Test ID */ testID?: string; } declare const BasicDay: { (props: BasicDayProps): React.JSX.Element; displayName: string; }; export default BasicDay;