UNPKG

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