UNPKG

1.24 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import { StyleProp, ViewStyle, TextStyle, TextProps } from 'react-native';
3import { IMessage } from './Models';
4export interface DayProps<TMessage extends IMessage = IMessage> {
5 currentMessage?: TMessage;
6 nextMessage?: TMessage;
7 previousMessage?: TMessage;
8 containerStyle?: StyleProp<ViewStyle>;
9 wrapperStyle?: StyleProp<ViewStyle>;
10 textStyle?: StyleProp<TextStyle>;
11 textProps?: TextProps;
12 dateFormat?: string;
13 inverted?: boolean;
14}
15export declare function Day<TMessage extends IMessage = IMessage>({ dateFormat, currentMessage, previousMessage, containerStyle, wrapperStyle, textStyle, }: DayProps<TMessage>): JSX.Element | null;
16export declare namespace Day {
17 var propTypes: {
18 currentMessage: PropTypes.Requireable<object>;
19 previousMessage: PropTypes.Requireable<object>;
20 nextMessage: PropTypes.Requireable<object>;
21 inverted: PropTypes.Requireable<boolean>;
22 containerStyle: PropTypes.Requireable<number | boolean | object>;
23 wrapperStyle: PropTypes.Requireable<number | boolean | object>;
24 textStyle: PropTypes.Requireable<number | boolean | object>;
25 dateFormat: PropTypes.Requireable<string>;
26 };
27}