react-native-gifted-chat
Version:
The most complete chat UI for React Native
19 lines • 1.05 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
import { TouchableOpacityProps } from './components/TouchableOpacity';
import { IMessage } from './Models';
export interface SendProps<TMessage extends IMessage> {
text?: string;
label?: string;
containerStyle?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
children?: React.ReactNode;
/** Always show send button, even when text is empty */
isSendButtonAlwaysVisible?: boolean;
/** Text is optional, allow sending empty messages (useful for media-only messages) */
isTextOptional?: boolean;
sendButtonProps?: Partial<TouchableOpacityProps>;
onSend?(messages: Partial<TMessage> | Partial<TMessage>[], shouldResetInputToolbar: boolean): void;
}
export declare const Send: <TMessage extends IMessage = IMessage>({ text, containerStyle, children, textStyle, label, isSendButtonAlwaysVisible, isTextOptional, sendButtonProps, onSend, }: SendProps<TMessage>) => React.JSX.Element;
//# sourceMappingURL=Send.d.ts.map