UNPKG

1.39 kBTypeScriptView Raw
1import * as React from 'react';
2import PropTypes from 'prop-types';
3import { ViewStyle, TextStyle } from 'react-native';
4import { LeftRightStyle, IMessage } from './Models';
5export interface TimeProps<TMessage extends IMessage> {
6 position?: 'left' | 'right';
7 currentMessage: TMessage;
8 containerStyle?: LeftRightStyle<ViewStyle>;
9 timeTextStyle?: LeftRightStyle<TextStyle>;
10 timeFormat?: string;
11}
12export declare function Time<TMessage extends IMessage = IMessage>({ position, containerStyle, currentMessage, timeFormat, timeTextStyle, }: TimeProps<TMessage>): React.JSX.Element | null;
13export 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}