react-native-ajora
Version:
The most complete AI agent UI for React Native
16 lines (15 loc) • 766 B
TypeScript
import React from "react";
import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps } from "react-native";
import { IMessage } from "./types";
export interface SendProps<TMessage extends IMessage> {
text?: string;
label?: string;
containerStyle?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
children?: React.ReactNode;
alwaysShowSend?: boolean;
disabled?: boolean;
sendButtonProps?: Partial<TouchableOpacityProps>;
onSend?(messages: Partial<TMessage> | Partial<TMessage>[], shouldResetInputToolbar: boolean): void;
}
export declare const Send: <TMessage extends IMessage = IMessage>({ text, containerStyle, alwaysShowSend, disabled, sendButtonProps, onSend, }: SendProps<TMessage>) => React.JSX.Element | null;