UNPKG

1.03 kBTypeScriptView Raw
1import { Component } 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 default class SystemMessage<TMessage extends IMessage = IMessage> extends Component<SystemMessageProps<TMessage>> {
12 static defaultProps: {
13 currentMessage: {
14 system: boolean;
15 };
16 containerStyle: {};
17 wrapperStyle: {};
18 textStyle: {};
19 };
20 static propTypes: {
21 currentMessage: PropTypes.Requireable<object>;
22 containerStyle: PropTypes.Requireable<number | boolean | object>;
23 wrapperStyle: PropTypes.Requireable<number | boolean | object>;
24 textStyle: PropTypes.Requireable<number | boolean | object>;
25 };
26 render(): JSX.Element | null;
27}