UNPKG

1.01 kBTypeScriptView Raw
1import React from 'react';
2import { ViewStyle, StyleProp, TextStyle } from 'react-native';
3import PropTypes from 'prop-types';
4import { IMessage } from './Models';
5export interface SystemMessageProps<TMessage extends IMessage> {
6 currentMessage: TMessage;
7 containerStyle?: StyleProp<ViewStyle>;
8 wrapperStyle?: StyleProp<ViewStyle>;
9 textStyle?: StyleProp<TextStyle>;
10}
11export declare function SystemMessage<TMessage extends IMessage = IMessage>({ currentMessage, containerStyle, wrapperStyle, textStyle, }: SystemMessageProps<TMessage>): React.JSX.Element | null;
12export declare namespace SystemMessage {
13 var propTypes: {
14 currentMessage: PropTypes.Requireable<object>;
15 containerStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
16 wrapperStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
17 textStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
18 };
19}