1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | import { StyleProp, ViewStyle } from 'react-native';
|
4 | import { ComposerProps } from './Composer';
|
5 | import { SendProps } from './Send';
|
6 | import { ActionsProps } from './Actions';
|
7 | import { IMessage } from './Models';
|
8 | export interface InputToolbarProps<TMessage extends IMessage> {
|
9 | options?: {
|
10 | [key: string]: () => void;
|
11 | };
|
12 | optionTintColor?: string;
|
13 | containerStyle?: StyleProp<ViewStyle>;
|
14 | primaryStyle?: StyleProp<ViewStyle>;
|
15 | accessoryStyle?: StyleProp<ViewStyle>;
|
16 | renderAccessory?(props: InputToolbarProps<TMessage>): React.ReactNode;
|
17 | renderActions?(props: ActionsProps): React.ReactNode;
|
18 | renderSend?(props: SendProps<TMessage>): React.ReactNode;
|
19 | renderComposer?(props: ComposerProps): React.ReactNode;
|
20 | onPressActionButton?(): void;
|
21 | icon?: () => React.ReactNode;
|
22 | wrapperStyle?: StyleProp<ViewStyle>;
|
23 | }
|
24 | export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): React.JSX.Element;
|
25 | export declare namespace InputToolbar {
|
26 | var propTypes: {
|
27 | renderAccessory: PropTypes.Requireable<(...args: any[]) => any>;
|
28 | renderActions: PropTypes.Requireable<(...args: any[]) => any>;
|
29 | renderSend: PropTypes.Requireable<(...args: any[]) => any>;
|
30 | renderComposer: PropTypes.Requireable<(...args: any[]) => any>;
|
31 | onPressActionButton: PropTypes.Requireable<(...args: any[]) => any>;
|
32 | containerStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
|
33 | primaryStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
|
34 | accessoryStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
|
35 | };
|
36 | }
|