react-native-gifted-chat
Version:
The most complete chat UI for React Native
27 lines (26 loc) • 1.22 kB
TypeScript
import PropTypes from 'prop-types';
import { ViewStyle, TextStyle } from 'react-native';
import { LeftRightStyle, IMessage } from './Models';
export interface TimeProps<TMessage extends IMessage> {
position?: 'left' | 'right';
currentMessage?: TMessage;
containerStyle?: LeftRightStyle<ViewStyle>;
timeTextStyle?: LeftRightStyle<TextStyle>;
timeFormat?: string;
}
export declare function Time<TMessage extends IMessage = IMessage>({ position, containerStyle, currentMessage, timeFormat, timeTextStyle, }: TimeProps<TMessage>): JSX.Element | null;
export declare namespace Time {
var propTypes: {
position: PropTypes.Requireable<string>;
currentMessage: PropTypes.Requireable<object>;
containerStyle: PropTypes.Requireable<PropTypes.InferProps<{
left: PropTypes.Requireable<number | boolean | object>;
right: PropTypes.Requireable<number | boolean | object>;
}>>;
timeFormat: PropTypes.Requireable<string>;
timeTextStyle: PropTypes.Requireable<PropTypes.InferProps<{
left: PropTypes.Requireable<number | boolean | object>;
right: PropTypes.Requireable<number | boolean | object>;
}>>;
};
}