1 | import { Component } from 'react';
|
2 | import { ViewStyle, StyleProp, TextStyle } from 'react-native';
|
3 | import PropTypes from 'prop-types';
|
4 | import { IMessage } from './Models';
|
5 | export interface SystemMessageProps<TMessage extends IMessage> {
|
6 | currentMessage?: TMessage;
|
7 | containerStyle?: StyleProp<ViewStyle>;
|
8 | wrapperStyle?: StyleProp<ViewStyle>;
|
9 | textStyle?: StyleProp<TextStyle>;
|
10 | }
|
11 | export 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 | }
|