UNPKG

@qte/react-native-gifted-chat

Version:

Performant fork of react-native-gifted-chat with FlashList support

24 lines (23 loc) 1.01 kB
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 './types'; export interface InputToolbarProps<TMessage extends IMessage> { options?: { [key: string]: () => void; }; 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; icon?: () => React.ReactNode; wrapperStyle?: StyleProp<ViewStyle>; } export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): React.JSX.Element;