react-native-gifted-chat-flashlist
Version:
React Native Gifted Chat with FlashList optimization for better performance
30 lines (29 loc) • 1.46 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps } from 'react-native';
import { IMessage } from './Models';
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, children, textStyle, label, alwaysShowSend, disabled, sendButtonProps, onSend, }: SendProps<TMessage>): React.JSX.Element | null;
propTypes: {
text: PropTypes.Requireable<string>;
onSend: PropTypes.Requireable<(...args: any[]) => any>;
label: PropTypes.Requireable<string>;
containerStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
textStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
children: PropTypes.Requireable<PropTypes.ReactElementLike>;
alwaysShowSend: PropTypes.Requireable<boolean>;
disabled: PropTypes.Requireable<boolean>;
sendButtonProps: PropTypes.Requireable<object>;
};
};