UNPKG

react-native-ajora

Version:

The most complete AI agent UI for React Native

26 lines (25 loc) 1.13 kB
import React from "react"; import { StyleProp, ViewStyle } from "react-native"; import { ComposerProps } from "../Composer"; import { SendProps } from "../Send"; import { ActionsProps, OnUploadProps } 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>; renderAttachment?: () => React.ReactNode; onUpload?(props: OnUploadProps): Promise<void>; } export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): React.JSX.Element;