react-native-gifted-chat
Version:
The most complete chat UI for React Native
35 lines (34 loc) • 1.61 kB
TypeScript
import PropTypes from 'prop-types';
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { ComposerProps } from './Composer';
import { SendProps } from './Send';
import { ActionsProps } from './Actions';
import { IMessage } from './Models';
export interface InputToolbarProps<TMessage extends IMessage> {
options?: {
[key: string]: any;
};
optionTintColor?: string;
containerStyle?: StyleProp<ViewStyle>;
primaryStyle?: StyleProp<ViewStyle>;
accessoryStyle?: StyleProp<ViewStyle>;
renderAccessory?(props: InputToolbarProps<TMessage>): React.ReactNode;
renderActions?(props: ActionsProps): React.ReactNode;
renderSend?(props: SendProps<TMessage>): React.ReactNode;
renderComposer?(props: ComposerProps): React.ReactNode;
onPressActionButton?(): void;
}
export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): JSX.Element;
export declare namespace InputToolbar {
var propTypes: {
renderAccessory: PropTypes.Requireable<(...args: any[]) => any>;
renderActions: PropTypes.Requireable<(...args: any[]) => any>;
renderSend: PropTypes.Requireable<(...args: any[]) => any>;
renderComposer: PropTypes.Requireable<(...args: any[]) => any>;
onPressActionButton: PropTypes.Requireable<(...args: any[]) => any>;
containerStyle: PropTypes.Requireable<number | boolean | object>;
primaryStyle: PropTypes.Requireable<number | boolean | object>;
accessoryStyle: PropTypes.Requireable<number | boolean | object>;
};
}