1 | import React from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
4 | import { IMessage, Reply } from './Models';
|
5 | export interface QuickRepliesProps<TMessage extends IMessage = IMessage> {
|
6 | nextMessage?: TMessage;
|
7 | currentMessage: TMessage;
|
8 | color?: string;
|
9 | sendText?: string;
|
10 | quickReplyStyle?: StyleProp<ViewStyle>;
|
11 | quickReplyTextStyle?: StyleProp<TextStyle>;
|
12 | quickReplyContainerStyle?: StyleProp<ViewStyle>;
|
13 | onQuickReply?(reply: Reply[]): void;
|
14 | renderQuickReplySend?(): React.ReactNode;
|
15 | }
|
16 | export declare function QuickReplies({ currentMessage, nextMessage, color, quickReplyStyle, quickReplyTextStyle, quickReplyContainerStyle, onQuickReply, sendText, renderQuickReplySend, }: QuickRepliesProps<IMessage>): React.JSX.Element | null;
|
17 | export declare namespace QuickReplies {
|
18 | var propTypes: {
|
19 | currentMessage: PropTypes.Validator<object>;
|
20 | onQuickReply: PropTypes.Requireable<(...args: any[]) => any>;
|
21 | color: PropTypes.Requireable<string>;
|
22 | sendText: PropTypes.Requireable<string>;
|
23 | renderQuickReplySend: PropTypes.Requireable<(...args: any[]) => any>;
|
24 | quickReplyStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
|
25 | };
|
26 | }
|