import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps } from 'react-native'; import { IMessage } from './Models'; export interface SendProps { text?: string; label?: string; containerStyle?: StyleProp; textStyle?: StyleProp; children?: React.ReactNode; alwaysShowSend?: boolean; disabled?: boolean; sendButtonProps?: Partial; onSend?(messages: Partial | Partial[], shouldResetInputToolbar: boolean): void; } export default class Send extends Component> { static defaultProps: { text: string; onSend: () => void; label: string; containerStyle: {}; textStyle: {}; children: null; alwaysShowSend: boolean; disabled: boolean; sendButtonProps: null; }; static propTypes: { text: PropTypes.Requireable; onSend: PropTypes.Requireable<(...args: any[]) => any>; label: PropTypes.Requireable; containerStyle: PropTypes.Requireable; textStyle: PropTypes.Requireable; children: PropTypes.Requireable; alwaysShowSend: PropTypes.Requireable; disabled: PropTypes.Requireable; sendButtonProps: PropTypes.Requireable; }; handleOnPress: () => void; render(): JSX.Element; }