1 | import PropTypes from 'prop-types';
|
2 | import { ViewStyle, TextStyle } from 'react-native';
|
3 | import { LeftRightStyle, IMessage } from './Models';
|
4 | export interface TimeProps<TMessage extends IMessage> {
|
5 | position?: 'left' | 'right';
|
6 | currentMessage?: TMessage;
|
7 | containerStyle?: LeftRightStyle<ViewStyle>;
|
8 | timeTextStyle?: LeftRightStyle<TextStyle>;
|
9 | timeFormat?: string;
|
10 | }
|
11 | export declare function Time<TMessage extends IMessage = IMessage>({ position, containerStyle, currentMessage, timeFormat, timeTextStyle, }: TimeProps<TMessage>): JSX.Element | null;
|
12 | export declare namespace Time {
|
13 | var propTypes: {
|
14 | position: PropTypes.Requireable<string>;
|
15 | currentMessage: PropTypes.Requireable<object>;
|
16 | containerStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
17 | left: PropTypes.Requireable<number | boolean | object>;
|
18 | right: PropTypes.Requireable<number | boolean | object>;
|
19 | }>>;
|
20 | timeFormat: PropTypes.Requireable<string>;
|
21 | timeTextStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
22 | left: PropTypes.Requireable<number | boolean | object>;
|
23 | right: PropTypes.Requireable<number | boolean | object>;
|
24 | }>>;
|
25 | };
|
26 | }
|