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