UNPKG

1.8 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3import { StyleProp, ViewStyle } from 'react-native';
4import { ComposerProps } from './Composer';
5import { SendProps } from './Send';
6import { ActionsProps } from './Actions';
7import { IMessage } from './Models';
8export 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}
24export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): React.JSX.Element;
25export 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}