UNPKG

1.3 kBTypeScriptView Raw
1import React from 'react';
2import PropTypes from 'prop-types';
3import { StyleProp, ViewStyle, TextStyle } from 'react-native';
4import { IMessage, Reply } from './Models';
5export 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}
16export declare function QuickReplies({ currentMessage, nextMessage, color, quickReplyStyle, quickReplyTextStyle, quickReplyContainerStyle, onQuickReply, sendText, renderQuickReplySend, }: QuickRepliesProps<IMessage>): React.JSX.Element | null;
17export 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}